mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-06 03:40:33 +08:00
Various small improvements across crates
Most of these changes should be self-explanatory. * Atomic fetch was no longer used * The default policy when initializing should be 'all', as it is with `rad init`.
This commit is contained in:
@@ -240,14 +240,6 @@ impl Runtime {
|
||||
}
|
||||
let reactor = Reactor::named(wire, popol::Poller::new(), thread::name(&id, "service"))?;
|
||||
let handle = Handle::new(home.clone(), reactor.controller(), emitter);
|
||||
let atomic = git::version()? >= git::VERSION_REQUIRED;
|
||||
|
||||
if !atomic {
|
||||
log::warn!(
|
||||
target: "node",
|
||||
"Disabling atomic fetches; git version >= {} required", git::VERSION_REQUIRED
|
||||
);
|
||||
}
|
||||
|
||||
let nid = *signer.public_key();
|
||||
let fetch = worker::FetchConfig {
|
||||
|
||||
@@ -476,10 +476,7 @@ impl<G: cyphernet::Ecdh<Pk = NodeId> + Signer + Clone> Node<G> {
|
||||
.map(|(id, _, _)| id)
|
||||
.unwrap();
|
||||
|
||||
assert!(self
|
||||
.policies
|
||||
.seed(&id, node::policy::Scope::Followed)
|
||||
.unwrap());
|
||||
assert!(self.policies.seed(&id, node::policy::Scope::All).unwrap());
|
||||
|
||||
log::debug!(
|
||||
target: "test",
|
||||
|
||||
Reference in New Issue
Block a user