Skip to content

Commit

Permalink
fix "data race" ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFireMike committed Feb 4, 2021
1 parent 2b3e7cf commit fb169fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/request_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ func StartAPI() {
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
defer cancel()

if err = e.Shutdown(ctx); err != nil {
if err := e.Shutdown(ctx); err != nil {
log.Fatal().Err(err).Msg("shutting down the server failed")
}
}
Expand Down

0 comments on commit fb169fa

Please sign in to comment.