From 8855bce0854ecf4adad7a0556bb2b2d2f98e0e20 Mon Sep 17 00:00:00 2001 From: NagyZoltanPeter <113987313+NagyZoltanPeter@users.noreply.github.com> Date: Fri, 8 Nov 2024 11:11:51 +0100 Subject: [PATCH] fix:missing raises pragma for one of RendezVous.new (#1222) --- libp2p/protocols/rendezvous.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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