fix(tvix/nar-bridge): properly check error during HTTP shutdown
We didn't bind err := here. Change-Id: I779d7ba5660ba4b126a4a0db7fe044bf94425855 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9547 Reviewed-by: Connor Brewster <cbrewster@hey.com> Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
96c0b3f069
commit
7e9da4ddef
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ func main() {
|
|||
timeoutCtx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
|
||||
defer cancel()
|
||||
|
||||
if s.Shutdown(timeoutCtx); err != nil {
|
||||
if err := s.Shutdown(timeoutCtx); err != nil {
|
||||
log.WithError(err).Warn("failed to shutdown")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue