mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 08:10:40 +08:00
cli: Consolidate policy/scope variants
* Policy::Track -> Policy::Allow * Scope::Trusted -> Scope::Followed
This commit is contained in:
@@ -420,7 +420,7 @@ impl<G: cyphernet::Ecdh<Pk = NodeId> + Signer + Clone> Node<G> {
|
||||
|
||||
assert!(self
|
||||
.tracking
|
||||
.track_repo(&id, node::tracking::Scope::Trusted)
|
||||
.track_repo(&id, node::tracking::Scope::Followed)
|
||||
.unwrap());
|
||||
|
||||
log::debug!(
|
||||
|
||||
@@ -172,7 +172,7 @@ where
|
||||
config.config.external_addresses.push(local_addr.into());
|
||||
|
||||
for rid in storage.inventory().unwrap() {
|
||||
tracking.track_repo(&rid, Scope::Trusted).unwrap();
|
||||
tracking.track_repo(&rid, Scope::Followed).unwrap();
|
||||
}
|
||||
let announcement = service::gossip::node(&config.config, config.local_time.as_secs());
|
||||
let emitter: Emitter<Event> = Default::default();
|
||||
|
||||
@@ -422,7 +422,7 @@ impl<S: WriteStorage + 'static, G: Signer> Simulation<S, G> {
|
||||
radicle::test::fetch(
|
||||
&repo,
|
||||
&nid,
|
||||
Namespaces::Trusted(namespaces.clone()),
|
||||
Namespaces::Followed(namespaces.clone()),
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
@@ -655,7 +655,7 @@ impl<S: WriteStorage + 'static, G: Signer> Simulation<S, G> {
|
||||
Rc::new(Ok(fetch::FetchResult {
|
||||
updated: vec![],
|
||||
namespaces: match namespaces {
|
||||
Namespaces::Trusted(hs) => hs,
|
||||
Namespaces::Followed(hs) => hs,
|
||||
Namespaces::All => HashSet::new(),
|
||||
},
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user