diff options
| author | tv <tv@krebsco.de> | 2026-10-25 19:55:59 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-25 19:55:59 +0100 |
| commit | 5b45a37dd4a99a94508f92ee67f540c3b3183c4f (patch) | |
| tree | d175d899b222309427fa4d4471afa5417b3c3b32 /src/main.rs | |
| parent | 041d61062e1bc6ceffbe520cf8062a534794ce39 (diff) | |
nodes keep list of every actor ID they've used
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 88cbc6f..278a0f4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -146,6 +146,7 @@ async fn main() -> Result<()> { Some(backup) => (backup.doc, Some(backup.epoch), Some(backup.swarm_id)), None => (AutoCommit::new(), None, None), }; + let initial_actor = initial_doc.get_actor().clone(); let initial_epoch = match (recovered_epoch, args.debug_epoch) { (Some(epoch), _) => epoch, (None, Some(generation)) => Epoch { @@ -210,6 +211,7 @@ async fn main() -> Result<()> { }; trace!("Application state initialized"); + state.remake.add_own_actor(initial_actor); // Join the remembered swarm and no other; HELLOs claim it. A backup to recover from // names its swarm itself (checked against the remembered one above). |
