mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
Refactoring, worked on middleware unit tests, and began thinking about api unit tests, #1921
This commit is contained in:
@@ -17,10 +17,13 @@ const (
|
||||
|
||||
var sessionManager *session.Manager
|
||||
var sessionOptions *session.Options
|
||||
var startSessionGC func()
|
||||
|
||||
func startSessionGC() {
|
||||
sessionManager.GC()
|
||||
time.AfterFunc(time.Duration(sessionOptions.Gclifetime)*time.Second, startSessionGC)
|
||||
func init() {
|
||||
startSessionGC = func() {
|
||||
sessionManager.GC()
|
||||
time.AfterFunc(time.Duration(sessionOptions.Gclifetime)*time.Second, startSessionGC)
|
||||
}
|
||||
}
|
||||
|
||||
func prepareOptions(opt *session.Options) *session.Options {
|
||||
|
||||
Reference in New Issue
Block a user