mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-11 16:03:58 +01:00
Cleanup code comment
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
This commit is contained in:
parent
af958676b8
commit
c14ad0f27b
4
stats.go
4
stats.go
@ -21,8 +21,8 @@ import (
|
|||||||
type statsHandlerFunc func(listen, path string) http.Handler
|
type statsHandlerFunc func(listen, path string) http.Handler
|
||||||
|
|
||||||
// startStats initializes stats from config. On success, if any further work
|
// startStats initializes stats from config. On success, if any further work
|
||||||
// is needed to serve stats, it returns an http.Handler for that work. If no
|
// is needed to serve stats, it returns an statsHandlerFunc for that work. If
|
||||||
// work is needed, it'll return nil. On failure, it returns nil, error.
|
// no work is needed, it'll return nil. On failure, it returns nil, error.
|
||||||
func startStats(l *logrus.Logger, c *config.C, listen, buildVersion string, configTest bool) (f statsHandlerFunc, err error) {
|
func startStats(l *logrus.Logger, c *config.C, listen, buildVersion string, configTest bool) (f statsHandlerFunc, err error) {
|
||||||
mType := c.GetString("stats.type", "")
|
mType := c.GetString("stats.type", "")
|
||||||
if mType == "" || mType == "none" {
|
if mType == "" || mType == "none" {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user