Bump node initialization timeout to 20 seconds (#4328)

This commit is contained in:
Chris Stewart 2022-05-10 18:02:12 -05:00 committed by GitHub
parent 6356a50a89
commit b980c432fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,8 +104,9 @@ trait Node extends NodeApi with ChainQueryApi with P2PLogger {
val isInitializedF = AsyncUtil
.retryUntilSatisfiedF(
() => peerManager.peerDataOf(peer).peerMessageSender.isInitialized(),
maxTries = 50,
interval = 250.millis)
maxTries = 20,
interval = 1.second
) //20 seconds
isInitializedF.failed
.foreach { err =>
logger.error(s"Failed to initialize with peer=$peer with err=$err")