瀏覽代碼

add client pull loop + timeout

afeiszli 3 年之前
父節點
當前提交
d78edc36b9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      netclient/functions/daemon.go

+ 2 - 2
netclient/functions/daemon.go

@@ -110,12 +110,12 @@ func MessageQueue(ctx context.Context, network string) {
 	cfg.Network = network
 	ncutils.Log("pulling latest config for " + cfg.Network)
 	var startTime float64
-	startTime = 2
+	startTime = 100
 	for {
 		_, err := Pull(network, true)
 		if err != nil {
 			ncutils.Log(err.Error())
-			startTime = math.Log(startTime * startTime)
+			startTime = math.Log2(startTime * startTime)
 		} else {
 			break
 		}