mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-12-30 09:46:55 -06:00
ranges
This commit is contained in:
parent
0411055aed
commit
448267217e
@ -25,7 +25,7 @@ impl RPCOperationWatchValueQ {
|
||||
) -> Result<Self, RPCError> {
|
||||
// Needed because RangeSetBlaze uses different types here all the time
|
||||
#[allow(clippy::unnecessary_cast)]
|
||||
let subkeys_len = subkeys.len() as usize;
|
||||
let subkeys_len = subkeys.ranges_len() as usize;
|
||||
|
||||
if subkeys_len > MAX_WATCH_VALUE_Q_SUBKEYS_LEN {
|
||||
return Err(RPCError::protocol("WatchValueQ subkeys length too long"));
|
||||
|
Loading…
Reference in New Issue
Block a user