mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-26 01:29:20 +01:00
Bump timeout on bind to avoid spurious ci failures hopefully (#2791)
* Bump timeout on bind to avoid spurious ci failures hopefully * Actually pass the timeout * Bump to 30 seconds
This commit is contained in:
parent
49544fc7f3
commit
7764828b3a
1 changed files with 2 additions and 2 deletions
|
@ -25,12 +25,12 @@ import scala.concurrent.{ExecutionContext, Future}
|
|||
case class PeerMessageSender(client: P2PClient)(implicit conf: NodeAppConfig)
|
||||
extends P2PLogger {
|
||||
private val socket = client.peer.socket
|
||||
implicit private val timeout = Timeout(10.seconds)
|
||||
implicit private val timeout = Timeout(30.seconds)
|
||||
|
||||
/** Initiates a connection with the given peer */
|
||||
def connect(): Unit = {
|
||||
logger.info(s"Attempting to connect to peer=$socket")
|
||||
(client.actor ! Tcp.Connect(socket))
|
||||
(client.actor ! Tcp.Connect(socket, timeout = Some(timeout.duration)))
|
||||
}
|
||||
|
||||
def isConnected()(implicit ec: ExecutionContext): Future[Boolean] = {
|
||||
|
|
Loading…
Add table
Reference in a new issue