Browse Source

chore

pull/15/head
Jason 5 years ago
parent
commit
abb4525120
  1. 4
      common/stats/session/session.go

4
common/stats/session/session.go

@ -38,7 +38,7 @@ func NewSimpleSessionStater() stats.SessionStater {
} }
func (s *simpleSessionStater) Start() error { func (s *simpleSessionStater) Start() error {
log.Infof("Start session stater.") log.Infof("Start session stater")
sessionStatsHandler := func(respw http.ResponseWriter, req *http.Request) { sessionStatsHandler := func(respw http.ResponseWriter, req *http.Request) {
// Make a snapshot. // Make a snapshot.
var sessions []stats.Session var sessions []stats.Session
@ -104,7 +104,7 @@ func (s *simpleSessionStater) Start() error {
} }
func (s *simpleSessionStater) Stop() error { func (s *simpleSessionStater) Stop() error {
log.Infof("Stop session stater.") log.Infof("Stop session stater")
return s.server.Close() return s.server.Close()
} }

Loading…
Cancel
Save