From db2699b3f1ba3c32200059d9bd26bc52b37b50ef Mon Sep 17 00:00:00 2001 From: Ludovic Chenut Date: Tue, 1 Oct 2024 12:17:08 +0200 Subject: [PATCH] docs: change advertisements to registration --- libp2p/protocols/rendezvous.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libp2p/protocols/rendezvous.nim b/libp2p/protocols/rendezvous.nim index 3c515868e..0c1758c85 100644 --- a/libp2p/protocols/rendezvous.nim +++ b/libp2p/protocols/rendezvous.nim @@ -506,11 +506,11 @@ proc advertisePeer(rdv: RendezVous, peer: PeerId, msg: seq[byte]) {.async.} = discard await advertiseWrap().withTimeout(5.seconds) proc advertise*( - rdv: RendezVous, ns: string, ttl: Duration, peers: seq[PeerId] + rdv: RendezVous, ns: string, ttl: Duration = rdv.minDuration, peers: seq[PeerId] ) {.async.} = - ## The advertise async procedure sends advertisements for a namespace + ## The advertise async procedure sends a registration for a namespace ## to a sequence of peers. It encodes and sends a signed peer record - ## along with a time-to-live value. Advertisements are sent + ## along with a time-to-live value. The registrations are sent ## concurrently to all specified peers. ## if ns.len notin 1 .. 255: