mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-10 16:59:25 -04:00
ranges
This commit is contained in:
parent
0411055aed
commit
448267217e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue