diff options
author | Florian Klink <flokli@flokli.de> | 2023-10-05T14·41+0300 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2023-10-05T19·15+0000 |
commit | 7e9da4ddef0800f63eef28014b17bbd0b0c4e954 (patch) | |
tree | 2ecb80850af186f5391773bf9b14db63f32a85c6 /tvix/nar-bridge/cmd | |
parent | 96c0b3f069b007c9c2f05d3252a0715ea6d90fff (diff) |
fix(tvix/nar-bridge): properly check error during HTTP shutdown r/6716
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
Diffstat (limited to 'tvix/nar-bridge/cmd')
-rw-r--r-- | tvix/nar-bridge/cmd/nar-bridge-http/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/nar-bridge/cmd/nar-bridge-http/main.go b/tvix/nar-bridge/cmd/nar-bridge-http/main.go index 39892d37feac..40357e68e864 100644 --- a/tvix/nar-bridge/cmd/nar-bridge-http/main.go +++ b/tvix/nar-bridge/cmd/nar-bridge-http/main.go @@ -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) } |