Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
easyCZ committed May 3, 2022
1 parent d3d0465 commit 4a038c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/public-api-server/pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func Start(logger *logrus.Entry, cfg Config) error {
return fmt.Errorf("failed to initialize public api server: %w", err)
}

if registerErr := register(srv, cfg); registerErr != nil {
if registerErr := register(srv); registerErr != nil {
return fmt.Errorf("failed to register services: %w", registerErr)
}

Expand All @@ -36,7 +36,7 @@ func Start(logger *logrus.Entry, cfg Config) error {
return nil
}

func register(srv *baseserver.Server, cfg Config) error {
func register(srv *baseserver.Server) error {
logger := log.New()
m := middleware.NewLoggingMiddleware(logger)
srv.HTTPMux().Handle("/", m(http.HandlerFunc(HelloWorldHandler)))
Expand Down

0 comments on commit 4a038c1

Please sign in to comment.