Browse Source

change the sleep to 10 millisec to avoid timeout

Max Ma 9 months ago
parent
commit
a13e55b0c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mq/publishers.go

+ 1 - 1
mq/publishers.go

@@ -55,7 +55,7 @@ func PublishPeerUpdate(replacePeers bool) error {
 
 
 	for _, host := range hosts {
 	for _, host := range hosts {
 		host := host
 		host := host
-		time.Sleep(1 * time.Millisecond)
+		time.Sleep(10 * time.Millisecond)
 		go func(host models.Host) {
 		go func(host models.Host) {
 			if err = PublishSingleHostPeerUpdate(&host, allNodes, nil, nil, replacePeers, nil); err != nil {
 			if err = PublishSingleHostPeerUpdate(&host, allNodes, nil, nil, replacePeers, nil); err != nil {
 				id := host.Name
 				id := host.Name