diff options
Diffstat (limited to 'src/swarm/bootstrap.rs')
| -rw-r--r-- | src/swarm/bootstrap.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/swarm/bootstrap.rs b/src/swarm/bootstrap.rs index a7266c7..446b846 100644 --- a/src/swarm/bootstrap.rs +++ b/src/swarm/bootstrap.rs @@ -92,7 +92,7 @@ pub(crate) async fn bootstrap(state: &AppState, seeds: &[String], start: Start) let topology = serde_json::to_value(state.configured_ways.0).unwrap_or_default(); let dissemination = serde_json::to_value(state.configured_ways.1).unwrap_or_default(); // The first users, granted by this node: with the rest, so that no node sees the - // swarm without its registry (none named: none, as in a swarm from before). + // swarm without its registry (none named: none). let (by, since) = ( state.local_id().to_owned(), state.clock.now_millis().as_u64(), @@ -100,8 +100,8 @@ pub(crate) async fn bootstrap(state: &AppState, seeds: &[String], start: Start) let users: Vec<(Vec<String>, JsonValue)> = state .first_users .iter() - .map(|(name, admin)| { - let caps = crate::access::registry::first_caps(*admin); + .map(|name| { + let caps = crate::access::registry::all_caps(); ( crate::access::registry::user_path(name), crate::access::registry::entry(&by, since, &caps), |
