From 75cc87154b4328758a7d4d6ad76ea2645636530d Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 03:54:45 +0100 Subject: move ChangeSet from swarm to document --- src/state/host.rs | 3 ++- src/state/mod.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/state') diff --git a/src/state/host.rs b/src/state/host.rs index 04b328c..a165637 100644 --- a/src/state/host.rs +++ b/src/state/host.rs @@ -13,8 +13,9 @@ use tracing::debug; use super::{AppState, HelloState, NodeLifecycle, StaleView, Standing}; use crate::document::replica::Epoch; +use crate::document::store::ChangeSet; use crate::remake::{Host, PeerSummary, RemakeState}; -use crate::swarm::sync::{ChangeSet, SyncEvent}; +use crate::swarm::sync::SyncEvent; impl AppState { /// After the document was replaced: every peer's sync state refers to the old diff --git a/src/state/mod.rs b/src/state/mod.rs index 2f3d433..e8975e2 100644 --- a/src/state/mod.rs +++ b/src/state/mod.rs @@ -42,9 +42,10 @@ use tracing::{debug, error, warn}; use crate::document::lock::DocumentLock; use crate::document::replica::{Epoch, Stamp}; +use crate::document::store::ChangeSet; use crate::locks::MutexExt; use crate::remake::{Host, RemakeState}; -use crate::swarm::sync::{ChangeSet, SyncEvent}; +use crate::swarm::sync::SyncEvent; use crate::swarm::throughput::ThroughputTable; use crate::transport; use crate::transport::firewall::Firewall; -- cgit v1.3.1