Skip to content

Commit 740db31

Browse files
committed
cleanup
1 parent cfd1df7 commit 740db31

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

rust/worker/src/execution/operators/apply_log_to_segment_writer.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ impl<Writer: SegmentWriter> ApplyLogToSegmentWriterInput<Writer> {
8181
}
8282

8383
#[derive(Debug)]
84-
pub struct ApplyLogToSegmentWriterOutput {
85-
// pub(crate) segment_writer: Writer,
86-
}
84+
pub struct ApplyLogToSegmentWriterOutput {}
8785

8886
#[async_trait]
8987
impl<Writer: SegmentWriter + Send + Sync + Clone>

rust/worker/src/execution/orchestration/compact.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ impl CompactOrchestrator {
266266
}
267267
}
268268

269-
async fn dispatch_segment_writer<
270-
Writer: SegmentWriter + Clone + Send + Sync + std::fmt::Debug + 'static, // todo
269+
async fn dispatch_apply_log_to_segment_writer_task<
270+
Writer: SegmentWriter + Clone + Send + Sync + std::fmt::Debug + 'static,
271271
>(
272272
&mut self,
273273
segment_writer: Writer,
@@ -327,21 +327,21 @@ impl CompactOrchestrator {
327327

328328
self.num_write_tasks = partitions.len() as i32 * 3;
329329
for partition in partitions.iter() {
330-
self.dispatch_segment_writer(
330+
self.dispatch_apply_log_to_segment_writer_task(
331331
record_segment_writer.clone(),
332332
self_address.clone(),
333333
partition.clone(),
334334
)
335335
.await;
336336

337-
self.dispatch_segment_writer(
337+
self.dispatch_apply_log_to_segment_writer_task(
338338
hnsw_segment_writer.clone(),
339339
self_address.clone(),
340340
partition.clone(),
341341
)
342342
.await;
343343

344-
self.dispatch_segment_writer(
344+
self.dispatch_apply_log_to_segment_writer_task(
345345
metadata_segment_writer.clone(),
346346
self_address.clone(),
347347
partition.clone(),

0 commit comments

Comments
 (0)