Skip to content

Commit

Permalink
named procs
Browse files Browse the repository at this point in the history
  • Loading branch information
SionoiS committed Nov 29, 2024
1 parent e181df9 commit 1470d1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions waku/waku_rendezvous/protocol.nim
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ proc batchAdvertise*(
## Register with all rendez vous peers under a namespace

let catchable = catch:
await procCall RendezVous(self).batchAdvertise(namespace, ttl, peers)
await procCall RendezVous(self).advertise(namespace, ttl, peers)

if catchable.isErr():
return err(catchable.error.msg)
Expand All @@ -56,7 +56,7 @@ proc batchRequest*(
## Request all records from all rendez vous peers with matching a namespace

let catchable = catch:
await RendezVous(self).batchRequest(namespace, count, peers)
await RendezVous(self).request(namespace, count, peers)

if catchable.isErr():
return err(catchable.error.msg)
Expand Down Expand Up @@ -103,7 +103,7 @@ proc advertiseAll(self: WakuRendezVous) {.async.} =
continue

# Advertise yourself on that peer
self.batchAdvertise(namespace, DefaultRegistrationTTL, @[rpi.peerId])
self.advertise(namespace, DefaultRegistrationTTL, @[rpi.peerId])

let handles = await allFinished(futs)

Expand Down

0 comments on commit 1470d1c

Please sign in to comment.