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
This commit is contained in:
NagyZoltanPeter 2024-11-08 11:07:33 +01:00 committed by GitHub
parent ed5670408b
commit f1fd4eb7f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -750,7 +750,7 @@ proc new*(
rng: ref HmacDrbgContext = newRng(), rng: ref HmacDrbgContext = newRng(),
minDuration = MinimumDuration, minDuration = MinimumDuration,
maxDuration = MaximumDuration, maxDuration = MaximumDuration,
): T = ): T {.raises: [RendezVousError].} =
let rdv = T.new(rng, minDuration, maxDuration) let rdv = T.new(rng, minDuration, maxDuration)
rdv.setup(switch) rdv.setup(switch)
return rdv return rdv