From 72066360adcde4c8a5182953d45ab44f8a635087 Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Mon, 4 Mar 2024 23:29:57 -0500 Subject: [PATCH] oops --- .../rpc_processor/coders/operations/operation_watch_value.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 1509fde8..33a5005a 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 @@ -61,7 +61,7 @@ impl RPCOperationWatchValueQ { #[allow(clippy::unnecessary_cast)] let subkeys_len = subkeys.ranges_len() as usize; - let mut sig_data = Vec::with_capacity(PUBLIC_KEY_LENGTH + 4 + (subkeys_len * 8) + 8 + 4); + let mut sig_data = Vec::with_capacity(PUBLIC_KEY_LENGTH + 4 + (subkeys_len * 8) + 8 + 8); sig_data.extend_from_slice(&key.kind.0); sig_data.extend_from_slice(&key.value.bytes); for sk in subkeys.ranges() { @@ -178,7 +178,7 @@ impl RPCOperationWatchValueQ { let expiration = reader.get_expiration(); let count = reader.get_count(); - let watch_id = if reader.get_watch_id() == 0 { + let watch_id = if reader.get_watch_id() != 0 { Some(reader.get_watch_id()) } else { None