From f1fd4eb7f4f04a80db76bb02cceb68f2a9ff131a Mon Sep 17 00:00:00 2001 From: NagyZoltanPeter <113987313+NagyZoltanPeter@users.noreply.github.com> Date: Fri, 8 Nov 2024 11:07:33 +0100 Subject: [PATCH] fix:missing raises pragma for one of RendezVous.new (#1222) Small issue arose in nwaku while bumping to v1.7 of nim-libp2p. There is a missing pragma preventing compilation while using RendezVous.new(switch). Seems only nwaku is using that version, hence it overlooked. Issue: https://github.com/vacp2p/nim-libp2p/issues/1221 --- 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