Skip to content

Commit

Permalink
use appconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Siwiec <[email protected]>
  • Loading branch information
rizzza committed Jul 10, 2023
1 parent d8bd313 commit 8dd0653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func serve(ctx context.Context) error {
middleware = append(middleware, auth.Middleware())
}

srv, err := echox.NewServer(logger.Desugar(), echox.ConfigFromViper(viper.GetViper()), versionx.BuildDetails())
srv, err := echox.NewServer(logger.Desugar(), config.AppConfig.Server, versionx.BuildDetails())
if err != nil {
logger.Fatal("failed to initialize new server", zap.Error(err))
}
Expand Down

0 comments on commit 8dd0653

Please sign in to comment.