diff --git a/libp2p/protocols/rendezvous.nim b/libp2p/protocols/rendezvous.nim index 06155bad24..26f54c3a22 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