소스 검색

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
 		}