mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-05 21:24:25 -04:00
oops
This commit is contained in:
parent
e009b1097b
commit
72066360ad
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ impl RPCOperationWatchValueQ {
|
||||||
#[allow(clippy::unnecessary_cast)]
|
#[allow(clippy::unnecessary_cast)]
|
||||||
let subkeys_len = subkeys.ranges_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);
|
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.kind.0);
|
||||||
sig_data.extend_from_slice(&key.value.bytes);
|
sig_data.extend_from_slice(&key.value.bytes);
|
||||||
for sk in subkeys.ranges() {
|
for sk in subkeys.ranges() {
|
||||||
|
@ -178,7 +178,7 @@ impl RPCOperationWatchValueQ {
|
||||||
|
|
||||||
let expiration = reader.get_expiration();
|
let expiration = reader.get_expiration();
|
||||||
let count = reader.get_count();
|
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())
|
Some(reader.get_watch_id())
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue