Skip to content

Commit

Permalink
fix:missing raises pragma for one of RendezVous.new (#1222)
Browse files Browse the repository at this point in the history
  • Loading branch information
NagyZoltanPeter authored Nov 8, 2024
1 parent ed56704 commit 8855bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libp2p/protocols/rendezvous.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8855bce

Please sign in to comment.