Sfoglia il codice sorgente

change the sleep to 10 millisec to avoid timeout

Max Ma 9 mesi fa
parent
commit
a13e55b0c9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      mq/publishers.go

+ 1 - 1
mq/publishers.go

@@ -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