Skip to content

Commit

Permalink
[core-service] Close indicator file (#1003)
Browse files Browse the repository at this point in the history
* Close indicator file

* Trivial change to trigger CI

* `make format`
  • Loading branch information
BenjaminPelletier authored Feb 22, 2024
1 parent 8557154 commit b42f7e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmds/core-service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,11 @@ func RunHTTPServer(ctx context.Context, ctxCanceler func(), address, locality st
if err != nil {
return stacktrace.Propagate(err, "Error touching file to indicate service ready")
}
readyFile.Close()

err = readyFile.Close()
if err != nil {
return stacktrace.Propagate(err, "Error closing touched file to indicate service ready")
}

logger.Info("Starting DSS HTTP server")
return httpServer.ListenAndServe()
Expand Down

0 comments on commit b42f7e5

Please sign in to comment.