aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-04-02 15:21:32 +0200
committerRasmus Dahlberg <rasmus@rgdd.se>2023-04-02 15:21:32 +0200
commitc400633603edea63ee4dbb2946aa8e343d3ec7a4 (patch)
tree792b0575756591af5e5f32d13676dcd2863b7de2
parent5422dbde1e07f341515fa9b70ee5e1a25c200418 (diff)
Print maximum shutdown time
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index ed1d2dd..a953fa6 100644
--- a/main.go
+++ b/main.go
@@ -146,7 +146,7 @@ func workReceiver(ctx context.Context, opts options.Options, answerCh chan qna.A
for {
select {
case <-ctx.Done():
- log.Printf("INFO: about to exit, reading remaining answers\n")
+ log.Printf("INFO: about to exit in at most %v, reading remaining answers\n", 2*opts.Timeout+time.Second)
for {
select {
case a := <-answerCh: