Skip to content

Commit

Permalink
Make sinks a variant of collections
Browse files Browse the repository at this point in the history
  • Loading branch information
bkirwi committed Jan 24, 2025
1 parent 0c03af0 commit 0690588
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 191 deletions.
9 changes: 0 additions & 9 deletions src/storage-client/src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ use std::time::Duration;

use async_trait::async_trait;
use mz_cluster_client::client::ClusterReplicaLocation;
use mz_cluster_client::metrics::WallclockLagMetrics;
use mz_cluster_client::ReplicaId;
use mz_persist_client::batch::ProtoBatch;
use mz_persist_types::{Codec64, Opaque, ShardId};
Expand Down Expand Up @@ -723,27 +722,19 @@ pub struct ExportState<T: TimelyTimestamp> {

/// Reported write frontier.
pub write_frontier: Antichain<T>,

/// Maximum frontier wallclock lag since the last introspection update.
pub wallclock_lag_max: Duration,
/// Frontier wallclock lag metrics tracked for this collection.
pub wallclock_lag_metrics: WallclockLagMetrics,
}

impl<T: Timestamp> ExportState<T> {
pub fn new(
description: ExportDescription<T>,
read_hold: ReadHold<T>,
read_policy: ReadPolicy<T>,
wallclock_lag_metrics: WallclockLagMetrics,
) -> Self {
Self {
description,
read_hold,
read_policy,
write_frontier: Antichain::from_elem(Timestamp::minimum()),
wallclock_lag_max: Default::default(),
wallclock_lag_metrics,
}
}

Expand Down
Loading

0 comments on commit 0690588

Please sign in to comment.