add client pull loop + timeout

This commit is contained in:
afeiszli
2022-02-01 15:46:42 -05:00
parent 8e82bfa607
commit d78edc36b9

View File

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