Explorar el Código

change the sleep to 10 millisec to avoid timeout

Max Ma hace 9 meses
padre
commit
a13e55b0c9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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