Browse Source

add client pull loop + timeout

afeiszli 3 years ago
parent
commit
d78edc36b9
1 changed files with 2 additions and 2 deletions
  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
 		}