mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2025-03-01 16:40:32 +00:00
chore: change advertise
from method to proc
This commit is contained in:
parent
021d618e6f
commit
cdbbabf2e2
@ -530,9 +530,9 @@ proc advertise*(
|
|||||||
|
|
||||||
await allFutures(futs)
|
await allFutures(futs)
|
||||||
|
|
||||||
method advertise*(
|
proc advertise*(
|
||||||
rdv: RendezVous, ns: string, ttl: Duration = rdv.minDuration
|
rdv: RendezVous, ns: string, ttl: Duration = rdv.minDuration
|
||||||
) {.async, base.} =
|
) {.async.} =
|
||||||
await rdv.advertise(ns, ttl, rdv.peers)
|
await rdv.advertise(ns, ttl, rdv.peers)
|
||||||
|
|
||||||
proc requestLocally*(rdv: RendezVous, ns: string): seq[PeerRecord] =
|
proc requestLocally*(rdv: RendezVous, ns: string): seq[PeerRecord] =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user