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(),
|
||||
minDuration = MinimumDuration,
|
||||
maxDuration = MaximumDuration,
|
||||
): T =
|
||||
): T {.raises: [RendezVousError].} =
|
||||
let rdv = T.new(rng, minDuration, maxDuration)
|
||||
rdv.setup(switch)
|
||||
return rdv
|
||||
|
|
Loading…
Reference in New Issue