Bump start interval for cleanup check

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2023-09-24 15:44:15 -07:00
parent f95ef63ae1
commit 121adb4719

View File

@@ -1564,7 +1564,7 @@ func (o *consumer) deleteNotActive() {
// Don't think this needs to be a monitored go routine.
go func() {
const (
startInterval = 5 * time.Second
startInterval = 30 * time.Second
maxInterval = 5 * time.Minute
)
jitter := time.Duration(rand.Int63n(int64(startInterval)))