From 0ac848173ea40f186e7edd5350397a8bfdab96a6 Mon Sep 17 00:00:00 2001 From: Phil Porada Date: Fri, 14 Apr 2023 22:32:24 -0400 Subject: [PATCH] Appease errcheck (#6821) Check errors during shutdown for several components to appease errcheck. Related to [1] and [2]. 1) https://github.com/letsencrypt/boulder/pull/6808 2) https://github.com/letsencrypt/boulder/pull/6819 --- cmd/ocsp-responder/main.go | 2 +- test/akamai-test-srv/main.go | 2 +- test/s3-test-srv/main.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/ocsp-responder/main.go b/cmd/ocsp-responder/main.go index 8227f2606..ed1ebf846 100644 --- a/cmd/ocsp-responder/main.go +++ b/cmd/ocsp-responder/main.go @@ -241,7 +241,7 @@ as generated by Boulder's ceremony command. ctx, cancel := context.WithTimeout(context.Background(), c.OCSPResponder.ShutdownStopTimeout.Duration) defer cancel() - srv.Shutdown(ctx) + _ = srv.Shutdown(ctx) }() cmd.WaitForSignal() diff --git a/test/akamai-test-srv/main.go b/test/akamai-test-srv/main.go index e6af7e566..f53138133 100644 --- a/test/akamai-test-srv/main.go +++ b/test/akamai-test-srv/main.go @@ -108,7 +108,7 @@ func main() { defer func() { ctx, cancel := context.WithTimeout(context.Background(), time.Second) defer cancel() - s.Shutdown(ctx) + _ = s.Shutdown(ctx) }() cmd.WaitForSignal() diff --git a/test/s3-test-srv/main.go b/test/s3-test-srv/main.go index ae998bb23..4708f0e89 100644 --- a/test/s3-test-srv/main.go +++ b/test/s3-test-srv/main.go @@ -109,7 +109,7 @@ func main() { defer func() { ctx, cancel := context.WithTimeout(context.Background(), time.Second) defer cancel() - s.Shutdown(ctx) + _ = s.Shutdown(ctx) }() cmd.WaitForSignal()