Merge pull request #52 from lippserd/bugfix/ctx-cancel

Remove always-false if
This commit is contained in:
Eric Lippmann 2021-05-07 11:08:48 +02:00 committed by GitHub
commit f84c882b28

View file

@ -96,9 +96,6 @@ func main() {
case <-hactx.Done():
// Nothing to do here, surrounding loop will terminate now.
case <-ctx.Done():
if err := ctx.Err(); err != nil && !utils.IsContextCanceled(err) {
panic(err)
}
return
case s := <-sig:
logger.Infow("Exiting due to signal", zap.String("signal", s.String()))