Separate code from different package
This commit is contained in:
@@ -210,6 +210,9 @@ func (manager *Manager) SessionDestroy(w http.ResponseWriter, r *http.Request){
|
||||
func init() {
|
||||
go globalSessions.GC()
|
||||
}
|
||||
```
|
||||
|
||||
```Go
|
||||
|
||||
func (manager *Manager) GC() {
|
||||
manager.lock.Lock()
|
||||
|
||||
Reference in New Issue
Block a user