mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 11:48:43 -07:00
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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user