fix: remove bad cast on DiscoveryLimit
This commit is contained in:
parent
ea7d6c8b3a
commit
4f3df474cd
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue