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 | 866924934d635df8a8f222a022f806c44581a5f5 (patch) | |
| tree | 43add97297eaf20f31877657bb893bec078cea29 /src/main.rs | |
| parent | fbfc766d80005dd5686c9acc1f8c16883c5e1ccc (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). |
