summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-25 19:55:59 +0100
committertv <tv@krebsco.de>2026-10-25 19:55:59 +0100
commitceb4a494cca68d9275b85ba66917f4ccdb570bdb (patch)
tree195cc94543df7b0aacc89d0dc15a55c4583858e4 /src/main.rs
parent734676c1c4c9a93dc31993327c04c7e0c3fd0d30 (diff)
nodes keep list of every actor ID they've used
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
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).