From 9dda6cf485a53a64f6c22a1a757bd99dea6364a8 Mon Sep 17 00:00:00 2001 From: "R.I.Pienaar" Date: Wed, 11 Oct 2023 18:13:51 +0300 Subject: [PATCH] Do not prompt for backoff on ack none policy Signed-off-by: R.I.Pienaar --- cli/consumer_command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/consumer_command.go b/cli/consumer_command.go index bbdcaf6c..46736826 100644 --- a/cli/consumer_command.go +++ b/cli/consumer_command.go @@ -1201,7 +1201,7 @@ func (c *consumerCmd) prepareConfig(pc *fisk.ParseContext) (cfg *api.ConsumerCon } cfg.HeadersOnly = c.hdrsOnly - if !c.acceptDefaults && c.backoffMode == "" { + if cfg.AckPolicy != api.AckNone && !c.acceptDefaults && c.backoffMode == "" { err = c.askBackoffPolicy() if err != nil { return nil, err