Skip to content

Commit

Permalink
fix: remove bad cast on DiscoveryLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
lchenut committed Oct 3, 2024
1 parent ea7d6c8 commit 4f3df47
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 @@ -568,7 +568,7 @@ proc request*(
s: Table[PeerId, (PeerRecord, Register)]
d = Discover(ns: ns)

if limit > DiscoverLimit.int:
if limit > DiscoverLimit:
raise newException(RendezVousError, "Invalid limit")
if ns.len notin 0 .. 255:
raise newException(RendezVousError, "Invalid namespace")
Expand Down

0 comments on commit 4f3df47

Please sign in to comment.