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:
parent
ed5670408b
commit
f1fd4eb7f4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue