From 7e9da4ddef0800f63eef28014b17bbd0b0c4e954 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 5 Oct 2023 17:41:03 +0300 Subject: 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 Autosubmit: flokli Tested-by: BuildkiteCI --- tvix/nar-bridge/cmd/nar-bridge-http/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix') diff --git a/tvix/nar-bridge/cmd/nar-bridge-http/main.go b/tvix/nar-bridge/cmd/nar-bridge-http/main.go index 39892d37fe..40357e68e8 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) } -- cgit 1.4.1