Skip to content
Snippets Groups Projects
Commit b461c410 authored by Luca Moser's avatar Luca Moser
Browse files

fix attempt log

parent 110d6003
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ func checkAutopeeringConnection() { ...@@ -66,7 +66,7 @@ func checkAutopeeringConnection() {
disc.Start(srv) disc.Start(srv)
defer disc.Close() defer disc.Close()
const retryCount = 10 const retryCount = 10
entryNodes := autopeering.Discovery().GetMasterPeers() entryNodes := autopeering.Discovery().GetMasterPeers()
for i := 0; i < retryCount; i++ { for i := 0; i < retryCount; i++ {
...@@ -75,7 +75,7 @@ func checkAutopeeringConnection() { ...@@ -75,7 +75,7 @@ func checkAutopeeringConnection() {
log.Infof("Pong received from %s", randEntryNode.IP()) log.Infof("Pong received from %s", randEntryNode.IP())
break break
} }
log.Warnf("Error pinging entry node %s (attempts left %d/%d): %s", randEntryNode.IP(), retryCount-i+1, retryCount, err) log.Warnf("Error pinging entry node %s (attempts left %d): %s", randEntryNode.IP(), retryCount-i-1, retryCount, err)
} }
if err != nil { if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment