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:
parent
bd1d27b8e8
commit
0ac848173e
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue