mirror of https://github.com/vacp2p/nim-libp2p.git
fix:missing raises pragma for one of RendezVous.new (#1222)
This commit is contained in:
parent
ed5670408b
commit
8855bce085
|
@ -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