Commit 1310d356 by bergquist

removes unused session code

parent e5759fa0
...@@ -6,7 +6,6 @@ import ( ...@@ -6,7 +6,6 @@ import (
"github.com/grafana/grafana/pkg/bus" "github.com/grafana/grafana/pkg/bus"
m "github.com/grafana/grafana/pkg/models" m "github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/services/session"
"github.com/grafana/grafana/pkg/setting" "github.com/grafana/grafana/pkg/setting"
. "github.com/smartystreets/goconvey/convey" . "github.com/smartystreets/goconvey/convey"
macaron "gopkg.in/macaron.v1" macaron "gopkg.in/macaron.v1"
...@@ -66,7 +65,6 @@ func recoveryScenario(desc string, url string, fn scenarioFunc) { ...@@ -66,7 +65,6 @@ func recoveryScenario(desc string, url string, fn scenarioFunc) {
sc.userAuthTokenService = newFakeUserAuthTokenService() sc.userAuthTokenService = newFakeUserAuthTokenService()
sc.m.Use(GetContextHandler(sc.userAuthTokenService)) sc.m.Use(GetContextHandler(sc.userAuthTokenService))
// mock out gc goroutine // mock out gc goroutine
session.StartSessionGC = func() {}
sc.m.Use(OrgRedirect()) sc.m.Use(OrgRedirect())
sc.m.Use(AddDefaultResponseHeaders()) sc.m.Use(AddDefaultResponseHeaders())
......
...@@ -19,7 +19,7 @@ const ( ...@@ -19,7 +19,7 @@ const (
var sessionManager *ms.Manager var sessionManager *ms.Manager
var sessionOptions *ms.Options var sessionOptions *ms.Options
var StartSessionGC func() var StartSessionGC func() = func() {}
var GetSessionCount func() int var GetSessionCount func() int
var sessionLogger = log.New("session") var sessionLogger = log.New("session")
var sessionConnMaxLifetime int64 var sessionConnMaxLifetime int64
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment