summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-21 03:56:31 +0200
committertv <tv@krebsco.de>2026-10-21 03:56:31 +0200
commit00f3be4e8b6ebf1f4262bc34384f82bc8d438574 (patch)
treed71de7f2b3c65938fc192b81ac73b5f4f321b8bb /src/state.rs
parent2c2bcf761fda888844a8538e756c8dbb9986a51f (diff)
rename compaction to remake
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/state.rs b/src/state.rs
index 18bface..51ca58a 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -12,8 +12,8 @@ use tokio::sync::{broadcast, mpsc, watch, Mutex, RwLock};
use tokio::time::Instant;
use tracing::{debug, error, warn};
-use crate::compaction::{Compaction, Host, PeerSummary};
use crate::document::replica::{Epoch, Replica};
+use crate::remake::{Host, PeerSummary, RemakeState};
use crate::swarm::sync::{ChangeSet, SyncEvent};
use crate::transport;
use crate::transport::firewall::Firewall;
@@ -298,8 +298,8 @@ pub(crate) struct AppState {
pub(crate) timing: Timing,
- /// Per-node compaction state (prebuilt snapshots, switch status, archive).
- pub(crate) compaction: Arc<Compaction>,
+ /// Per-node remake state (prebuilt snapshots, switch status, archive).
+ pub(crate) remake: Arc<RemakeState>,
/// While rejoining a newer epoch, the previous document, served read-only (and
/// marked stale) instead of answering 503.
@@ -621,10 +621,10 @@ pub(crate) fn unix_millis() -> u64 {
.unwrap_or(0)
}
-/// The node as seen by the compaction module.
+/// The node as seen by the remake module.
impl Host for AppState {
- fn compaction(&self) -> &Compaction {
- &self.compaction
+ fn remake(&self) -> &RemakeState {
+ &self.remake
}
fn node_id(&self) -> String {