diff --git a/veilid-core/src/rpc_processor/coders/operations/operation_watch_value.rs b/veilid-core/src/rpc_processor/coders/operations/operation_watch_value.rs index de35c662..bc137b74 100644 --- a/veilid-core/src/rpc_processor/coders/operations/operation_watch_value.rs +++ b/veilid-core/src/rpc_processor/coders/operations/operation_watch_value.rs @@ -55,7 +55,7 @@ impl RPCOperationWatchValueQ { ) -> Vec { // 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; let mut sig_data = Vec::with_capacity(PUBLIC_KEY_LENGTH + 4 + (subkeys_len * 8) + 8 + 4); sig_data.extend_from_slice(&key.kind.0);