diff --git a/libp2p/protocols/rendezvous.nim b/libp2p/protocols/rendezvous.nim index 06155bad2..26f54c3a2 100644 --- a/libp2p/protocols/rendezvous.nim +++ b/libp2p/protocols/rendezvous.nim @@ -750,7 +750,7 @@ proc new*( rng: ref HmacDrbgContext = newRng(), minDuration = MinimumDuration, maxDuration = MaximumDuration, -): T = +): T {.raises: [RendezVousError].} = let rdv = T.new(rng, minDuration, maxDuration) rdv.setup(switch) return rdv