@@ -72,6 +72,8 @@ use restate_types::partition_table::PartitionTable;
72
72
use restate_types:: protobuf:: common:: WorkerStatus ;
73
73
use restate_types:: GenerationalNodeId ;
74
74
75
+ type LsnWatchChannel = ( watch:: Sender < Option < Lsn > > , watch:: Receiver < Option < Lsn > > ) ;
76
+
75
77
pub struct PartitionProcessorManager {
76
78
task_center : TaskCenter ,
77
79
health_status : HealthStatus < WorkerStatus > ,
@@ -89,8 +91,7 @@ pub struct PartitionProcessorManager {
89
91
tx : mpsc:: Sender < ProcessorsManagerCommand > ,
90
92
91
93
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 > ,
94
95
invokers_status_reader : MultiplexedInvokerStatusReader ,
95
96
pending_control_processors : Option < ControlProcessors > ,
96
97
@@ -801,7 +802,6 @@ impl PartitionProcessorManager {
801
802
_ = self
802
803
. pending_snapshot_export_tasks
803
804
. insert ( partition_id, task) ;
804
- debug ! ( "In-progress create snapshto task..." ) ;
805
805
}
806
806
Err ( err) => {
807
807
// todo(pavel): how do we solve the ownership of sender moving to the (now failed) task?
0 commit comments