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:
cloudhead
2024-02-06 10:37:44 +01:00
parent bb06663d1c
commit 98c94de5e3
7 changed files with 43 additions and 22 deletions
-8
View File
@@ -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 {
+1 -4
View File
@@ -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",