Skip to content

Commit

Permalink
improve comments
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Jul 7, 2023
1 parent c14ad0f commit 0af7e6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand Down
2 changes: 1 addition & 1 deletion stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")
Expand Down

0 comments on commit 0af7e6a

Please sign in to comment.