From 021d618e6fb3aac08a1666c6941596eeeb1358e7 Mon Sep 17 00:00:00 2001 From: Ludovic Chenut Date: Fri, 27 Sep 2024 12:04:37 +0200 Subject: [PATCH] chore: remove useless `registerEvent` --- libp2p/protocols/rendezvous.nim | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libp2p/protocols/rendezvous.nim b/libp2p/protocols/rendezvous.nim index 06155bad2..eeed84e74 100644 --- a/libp2p/protocols/rendezvous.nim +++ b/libp2p/protocols/rendezvous.nim @@ -312,8 +312,6 @@ type salt: string defaultDT: Moment registerDeletionLoop: Future[void] - #registerEvent: AsyncEvent # TODO: to raise during the heartbeat - # + make the heartbeat sleep duration "smarter" sema: AsyncSemaphore peers: seq[PeerId] cookiesSaved: Table[PeerId, Table[string, seq[byte]]] @@ -402,7 +400,6 @@ proc save( ) ) rdv.namespaces[nsSalted].add(rdv.registered.high) - # rdv.registerEvent.fire() except KeyError: doAssert false, "Should have key" @@ -708,7 +705,6 @@ proc new*( salt: string.fromBytes(generateBytes(rng[], 8)), registered: initOffsettedSeq[RegisteredData](1), defaultDT: Moment.now() - 1.days, - #registerEvent: newAsyncEvent(), sema: newAsyncSemaphore(SemaphoreDefaultSize), minDuration: minDuration, maxDuration: maxDuration,