about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-10-05T14·41+0300
committerflokli <flokli@flokli.de>2023-10-05T19·15+0000
commit7e9da4ddef0800f63eef28014b17bbd0b0c4e954 (patch)
tree2ecb80850af186f5391773bf9b14db63f32a85c6
parent96c0b3f069b007c9c2f05d3252a0715ea6d90fff (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
-rw-r--r--tvix/nar-bridge/cmd/nar-bridge-http/main.go2
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 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)
 	}