From aa57adbcd053579b68ef51ff2045be761dbfbc23 Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Wed, 16 Nov 2022 11:31:49 -0800 Subject: [PATCH] Use default here Signed-off-by: Derek Collison --- server/consumer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/consumer.go b/server/consumer.go index 3a9f012b..b771acea 100644 --- a/server/consumer.go +++ b/server/consumer.go @@ -853,7 +853,7 @@ func (o *consumer) updateInactiveThreshold(cfg *ConsumerConfig) { // Ephemerals will always have inactive thresholds. if !o.isDurable() && cfg.InactiveThreshold <= 0 { // Add in 1 sec of jitter above and beyond the default of 5s. - o.dthresh = cfg.InactiveThreshold + 100*time.Millisecond + time.Duration(rand.Int63n(900))*time.Millisecond + o.dthresh = JsDeleteWaitTimeDefault + 100*time.Millisecond + time.Duration(rand.Int63n(900))*time.Millisecond // Only stamp config with default sans jitter. cfg.InactiveThreshold = JsDeleteWaitTimeDefault } else if cfg.InactiveThreshold > 0 {