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
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: #1221
  • Loading branch information
NagyZoltanPeter authored Nov 8, 2024
1 parent ed56704 commit f1fd4eb
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 f1fd4eb

Please sign in to comment.