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
This commit is contained in:
Phil Porada 2023-04-14 22:32:24 -04:00 committed by GitHub
parent bd1d27b8e8
commit 0ac848173e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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()