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

fix attempt log

parent 110d6003
Branches
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ func checkAutopeeringConnection() {
disc.Start(srv)
defer disc.Close()
const retryCount = 10
entryNodes := autopeering.Discovery().GetMasterPeers()
for i := 0; i < retryCount; i++ {
......@@ -75,7 +75,7 @@ func checkAutopeeringConnection() {
log.Infof("Pong received from %s", randEntryNode.IP())
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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment