Skip to content

Commit f99c7cb

Browse files
author
auxten
committed
stop ping in miner when succeed
1 parent f78a320 commit f99c7cb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cmd/miner/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,10 @@ func main() {
219219
bpNodeIDs := route.GetBPs()
220220

221221
for _, bpNodeID := range bpNodeIDs {
222-
rpc.PingBP(localNodeInfo, bpNodeID)
222+
err := rpc.PingBP(localNodeInfo, bpNodeID)
223+
if err == nil {
224+
return
225+
}
223226
}
224227
}
225228
}()

0 commit comments

Comments
 (0)