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 let dest = rpc_processor
.resolve_target_to_destination( .resolve_target_to_destination(
vc.target.clone(), vc.target,
SafetySelection::Unsafe(Sequencing::NoPreference), SafetySelection::Unsafe(Sequencing::NoPreference),
) )
.await .await

View File

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

View File

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

View File

@ -3,7 +3,7 @@ use super::*;
/////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////
/// Valid destinations for a message sent over a routing context /// 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 { pub enum Target {
/// Node by its public key /// Node by its public key
NodeId(TypedKey), NodeId(TypedKey),