From cdbbabf2e260391cdb9b13cac77b2a381b8dda5e Mon Sep 17 00:00:00 2001 From: Ludovic Chenut Date: Fri, 27 Sep 2024 12:05:12 +0200 Subject: [PATCH] chore: change `advertise` from method to proc --- libp2p/protocols/rendezvous.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libp2p/protocols/rendezvous.nim b/libp2p/protocols/rendezvous.nim index eeed84e74..938293aaf 100644 --- a/libp2p/protocols/rendezvous.nim +++ b/libp2p/protocols/rendezvous.nim @@ -530,9 +530,9 @@ proc advertise*( await allFutures(futs) -method advertise*( +proc advertise*( rdv: RendezVous, ns: string, ttl: Duration = rdv.minDuration -) {.async, base.} = +) {.async.} = await rdv.advertise(ns, ttl, rdv.peers) proc requestLocally*(rdv: RendezVous, ns: string): seq[PeerRecord] =