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
+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",