Merge branch 'salvatoret/copyable-target' into 'main'

Make Target copy-able

See merge request veilid/veilid!253
This commit is contained in:
Christien Rioux 2024-02-10 20:33:50 +00:00
commit ff853a6546
4 changed files with 4 additions and 4 deletions

View File

@ -734,7 +734,7 @@ impl StorageManager {
let dest = rpc_processor
.resolve_target_to_destination(
vc.target.clone(),
vc.target,
SafetySelection::Unsafe(Sequencing::NoPreference),
)
.await

View File

@ -909,7 +909,7 @@ where
}
evcis.push(EarlyValueChangedInfo {
target: w.target.clone(),
target: w.target,
key: rtk.key,
subkeys,
count,

View File

@ -196,7 +196,7 @@ impl StorageManager {
subkeys.clone(),
expiration,
count,
target.clone(),
target,
watcher,
)
.await?;

View File

@ -3,7 +3,7 @@ use super::*;
///////////////////////////////////////////////////////////////////////////////////////
/// Valid destinations for a message sent over a routing context
#[derive(Clone, Debug, Eq, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq, Hash, Copy, PartialOrd, Ord)]
pub enum Target {
/// Node by its public key
NodeId(TypedKey),