Skip to content

Commit

Permalink
removing peer manager changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer committed Oct 30, 2024
1 parent 52f6455 commit cbd2f83
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions waku/node/peer_manager/peer_manager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ proc dialPeer(
pm: PeerManager,
peerId: PeerID,
addrs: seq[MultiAddress],
proto = "",
proto: string,
dialTimeout = DefaultDialTimeout,
source = "api",
): Future[Option[Connection]] {.async.} =
Expand All @@ -411,11 +411,6 @@ proc dialPeer(

trace "Dialing peer", wireAddr = addrs, peerId = peerId, proto = proto

# Dial Peer
if proto == "":
await pm.switch.connect(peerId, addrs)
return none(Connection)

let dialFut = pm.switch.dial(peerId, addrs, proto)

let res = catch:
Expand All @@ -433,7 +428,7 @@ proc dialPeer(
proc dialPeer*(
pm: PeerManager,
remotePeerInfo: RemotePeerInfo,
proto = "",
proto: string,
dialTimeout = DefaultDialTimeout,
source = "api",
): Future[Option[Connection]] {.async.} =
Expand All @@ -454,7 +449,7 @@ proc dialPeer*(
proc dialPeer*(
pm: PeerManager,
peerId: PeerID,
proto = "",
proto: string,
dialTimeout = DefaultDialTimeout,
source = "api",
): Future[Option[Connection]] {.async.} =
Expand Down

0 comments on commit cbd2f83

Please sign in to comment.