Skip to content

Commit

Permalink
change the sleep to 10 millisec to avoid timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
yabinma committed Nov 22, 2024
1 parent a13c907 commit a13e55b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mq/publishers.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func PublishPeerUpdate(replacePeers bool) error {

for _, host := range hosts {
host := host
time.Sleep(1 * time.Millisecond)
time.Sleep(10 * time.Millisecond)
go func(host models.Host) {
if err = PublishSingleHostPeerUpdate(&host, allNodes, nil, nil, replacePeers, nil); err != nil {
id := host.Name
Expand Down

0 comments on commit a13e55b

Please sign in to comment.