mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
add client pull loop + timeout
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user