From 0af7e6a1ddadd96dfe967ba49e456f2c67969b1e Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Fri, 7 Jul 2023 17:06:19 +0200 Subject: [PATCH] improve comments Signed-off-by: Tim Vaillancourt --- http.go | 2 +- stats.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/http.go b/http.go index 427974f..60044b1 100644 --- a/http.go +++ b/http.go @@ -9,7 +9,7 @@ import ( "github.com/slackhq/nebula/config" ) -// startHttp returns a function to start an http server with pprof support and optionally, a provided stats +// startHttp returns a function to start an http server with pprof support and optionally a provided stats // http handler. func startHttp(l *logrus.Logger, c *config.C, listen string, statsHandler statsHandlerFunc) (func(), error) { if listen == "" { diff --git a/stats.go b/stats.go index 570372b..6832857 100644 --- a/stats.go +++ b/stats.go @@ -21,7 +21,7 @@ import ( type statsHandlerFunc func(listen, path string) http.Handler // startStats initializes stats from config. On success, if any further work -// is needed to serve stats, it returns an statsHandlerFunc for that work. If +// is needed to serve stats, it returns a statsHandlerFunc for that work. If // 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) { mType := c.GetString("stats.type", "")