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