Delay a bit longer if we are not the actual leader, helpful for very large stream reports to avoid possible dupes

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2023-04-12 12:36:47 -07:00
parent 808a2e8c90
commit 2f4677d29e

View File

@@ -7843,9 +7843,9 @@ func (mset *stream) processClusterStreamInfoRequest(reply string) {
return
}
// If we are not the leader let someone else possible respond first.
// If we are not the leader let someone else possibly respond first.
if !isLeader {
time.Sleep(200 * time.Millisecond)
time.Sleep(500 * time.Millisecond)
}
si := &StreamInfo{