Skip to content

Commit

Permalink
cleanup 3
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Jul 6, 2023
1 parent 40bb017 commit b4ed8be
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 @@ -10,7 +10,7 @@ import (
"github.com/slackhq/nebula/config"
)

func startHttp(l *logrus.Logger, c *config.C, statsHandler http.Handler, listen, buildVersion string, configTest bool) (f func(), err error) {
func startHttp(l *logrus.Logger, c *config.C, statsHandler http.Handler, listen string) (f func(), err error) {
var statsPath string
if statsHandler != nil {
statsPath = c.GetString("stats.path", "")
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func Main(c *config.C, configTest bool, buildVersion string, logger *logrus.Logg
return nil, util.NewContextualError("Failed to start stats emitter", nil, err)
}

httpStart, err := startHttp(l, c, statsHTTPHandler, httpListen, buildVersion, configTest)
httpStart, err := startHttp(l, c, statsHTTPHandler, httpListen)
if err != nil {
return nil, util.NewContextualError("Failed to start http server", nil, err)
}
Expand Down

0 comments on commit b4ed8be

Please sign in to comment.