diff options
| author | tv <tv@krebsco.de> | 2026-10-31 03:56:30 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-31 03:56:30 +0100 |
| commit | 0f010a383ae256d7e794c85e4332ee45841625aa (patch) | |
| tree | 3c1dfb0dc2542bbce1183ae66ca489eef4cedf60 /src/node.rs | |
| parent | 75cc87154b4328758a7d4d6ad76ea2645636530d (diff) | |
move change publisher to own module
Diffstat (limited to 'src/node.rs')
| -rw-r--r-- | src/node.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node.rs b/src/node.rs index 8adab2b..acf1dc5 100644 --- a/src/node.rs +++ b/src/node.rs @@ -21,7 +21,7 @@ use crate::state::{AppState, NodeLifecycle, Timing}; use crate::swarm::auth::SwarmKey; use crate::swarm::state_file::StateFile; use crate::swarm::sync::SyncEvent; -use crate::swarm::{self, peer, sync}; +use crate::swarm::{self, changes, peer, sync}; use crate::transport::Transport; use crate::transport::firewall::Firewall; use crate::transport::identity::{IdentityConfig, IdentityTransport}; @@ -194,6 +194,6 @@ impl Node { /// from then on, and it avoids diffing the initial sync) and the document file writer. pub(crate) fn spawn_ready_workers(state: &AppState) { let publisher_state = state.clone(); - tokio::spawn(async move { sync::run_change_publisher(publisher_state).await }); + tokio::spawn(async move { changes::run_change_publisher(publisher_state).await }); tokio::spawn(crate::document::file::run(state.clone())); } |
