Skip to content

Commit 164a3f3

Browse files
committed
Minor fixups
1 parent bdce7eb commit 164a3f3

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

crates/worker/src/partition_processor_manager/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ use restate_types::partition_table::PartitionTable;
7272
use restate_types::protobuf::common::WorkerStatus;
7373
use restate_types::GenerationalNodeId;
7474

75+
type LsnWatchChannel = (watch::Sender<Option<Lsn>>, watch::Receiver<Option<Lsn>>);
76+
7577
pub struct PartitionProcessorManager {
7678
task_center: TaskCenter,
7779
health_status: HealthStatus<WorkerStatus>,
@@ -89,8 +91,7 @@ pub struct PartitionProcessorManager {
8991
tx: mpsc::Sender<ProcessorsManagerCommand>,
9092

9193
persisted_lsns_rx: Option<watch::Receiver<BTreeMap<PartitionId, Lsn>>>,
92-
archived_lsn_channels:
93-
HashMap<PartitionId, (watch::Sender<Option<Lsn>>, watch::Receiver<Option<Lsn>>)>,
94+
archived_lsn_channels: HashMap<PartitionId, LsnWatchChannel>,
9495
invokers_status_reader: MultiplexedInvokerStatusReader,
9596
pending_control_processors: Option<ControlProcessors>,
9697

@@ -801,7 +802,6 @@ impl PartitionProcessorManager {
801802
_ = self
802803
.pending_snapshot_export_tasks
803804
.insert(partition_id, task);
804-
debug!("In-progress create snapshto task...");
805805
}
806806
Err(err) => {
807807
// todo(pavel): how do we solve the ownership of sender moving to the (now failed) task?

crates/worker/src/partition_processor_manager/spawn_processor_task.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,7 @@ impl SpawnPartitionProcessorTask {
147147
)?;
148148

149149
pp_builder
150-
.build::<ProtobufRawEntryCodec>(
151-
tc,
152-
bifrost,
153-
partition_store,
154-
)
150+
.build::<ProtobufRawEntryCodec>(tc, bifrost, partition_store)
155151
.await?
156152
.run()
157153
.await

0 commit comments

Comments
 (0)