chore: change `advertise` from method to proc

This commit is contained in:
Ludovic Chenut 2024-09-27 12:05:12 +02:00
parent 021d618e6f
commit cdbbabf2e2
No known key found for this signature in database
GPG Key ID: D9A59B1907F1D50C
1 changed files with 2 additions and 2 deletions

View File

@ -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] =