mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-11-22 17:07:23 -06:00
xfer
This commit is contained in:
parent
64832748a9
commit
d800f39c28
@ -15,7 +15,10 @@ impl RPCProcessor {
|
|||||||
/// Because this leaks information about the identity of the node itself,
|
/// Because this leaks information about the identity of the node itself,
|
||||||
/// replying to this request received over a private route will leak
|
/// replying to this request received over a private route will leak
|
||||||
/// the identity of the node and defeat the private route.
|
/// the identity of the node and defeat the private route.
|
||||||
|
/// The number of subkey sequence numbers returned may either be:
|
||||||
|
/// * the amount requested
|
||||||
|
/// * an amount truncated to MAX_INSPECT_VALUE_A_SEQS_LEN subkeys
|
||||||
|
/// * zero if nothing was found
|
||||||
#[cfg_attr(
|
#[cfg_attr(
|
||||||
feature = "verbose-tracing",
|
feature = "verbose-tracing",
|
||||||
instrument(level = "trace", skip(self, last_descriptor),
|
instrument(level = "trace", skip(self, last_descriptor),
|
||||||
|
@ -772,7 +772,7 @@ impl StorageManager {
|
|||||||
);
|
);
|
||||||
assert!(
|
assert!(
|
||||||
local_inspect_result.subkeys.is_subset(&subkeys),
|
local_inspect_result.subkeys.is_subset(&subkeys),
|
||||||
"mismatch between local subkeys returned and sequence number list returned"
|
"more subkeys returned locally than requested"
|
||||||
);
|
);
|
||||||
|
|
||||||
// If this is the maximum scope we're interested in, return the report
|
// If this is the maximum scope we're interested in, return the report
|
||||||
@ -816,16 +816,18 @@ impl StorageManager {
|
|||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
// Sanity check before zip
|
// Sanity check before zip
|
||||||
assert!(
|
assert_eq!(
|
||||||
result.inspect_result.subkeys.len() == result.fanout_results.len(),
|
result.inspect_result.subkeys.len(),
|
||||||
|
result.fanout_results.len(),
|
||||||
"mismatch between subkeys returned and fanout results returned"
|
"mismatch between subkeys returned and fanout results returned"
|
||||||
);
|
);
|
||||||
assert!(
|
if !local_inspect_result.subkeys.is_empty() && !result.inspect_result.subkeys.is_empty() {
|
||||||
local_inspect_result.subkeys.is_empty()
|
assert_eq!(
|
||||||
|| result.inspect_result.subkeys.is_empty()
|
result.inspect_result.subkeys.len(),
|
||||||
|| result.inspect_result.subkeys.len() == local_inspect_result.subkeys.len(),
|
local_inspect_result.subkeys.len(),
|
||||||
"mismatch between local subkeys returned and network results returned"
|
"mismatch between local subkeys returned and network results returned"
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Keep the list of nodes that returned a value for later reference
|
// Keep the list of nodes that returned a value for later reference
|
||||||
let mut inner = self.lock().await?;
|
let mut inner = self.lock().await?;
|
||||||
|
Loading…
Reference in New Issue
Block a user