Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
1310d356
Commit
1310d356
authored
Feb 12, 2019
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removes unused session code
parent
e5759fa0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
3 deletions
+1
-3
pkg/middleware/recovery_test.go
+0
-2
pkg/services/session/session.go
+1
-1
No files found.
pkg/middleware/recovery_test.go
View file @
1310d356
...
...
@@ -6,7 +6,6 @@ import (
"github.com/grafana/grafana/pkg/bus"
m
"github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/services/session"
"github.com/grafana/grafana/pkg/setting"
.
"github.com/smartystreets/goconvey/convey"
macaron
"gopkg.in/macaron.v1"
...
...
@@ -66,7 +65,6 @@ func recoveryScenario(desc string, url string, fn scenarioFunc) {
sc
.
userAuthTokenService
=
newFakeUserAuthTokenService
()
sc
.
m
.
Use
(
GetContextHandler
(
sc
.
userAuthTokenService
))
// mock out gc goroutine
session
.
StartSessionGC
=
func
()
{}
sc
.
m
.
Use
(
OrgRedirect
())
sc
.
m
.
Use
(
AddDefaultResponseHeaders
())
...
...
pkg/services/session/session.go
View file @
1310d356
...
...
@@ -19,7 +19,7 @@ const (
var
sessionManager
*
ms
.
Manager
var
sessionOptions
*
ms
.
Options
var
StartSessionGC
func
()
var
StartSessionGC
func
()
=
func
()
{}
var
GetSessionCount
func
()
int
var
sessionLogger
=
log
.
New
(
"session"
)
var
sessionConnMaxLifetime
int64
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment