Skip to content

Commit 8338e76

Browse files
committed
simplify driver
1 parent a38c8cc commit 8338e76

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

kernel/src/distributed/driver.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub(crate) struct DriverProcessor<P: LogReplayProcessor> {
7575
}
7676

7777
/// Result of driver phase processing.
78-
#[allow(unused)]
78+
#[allow(unused)]
7979
pub(crate) enum DriverProcessorResult<P: LogReplayProcessor> {
8080
/// All processing complete on driver - no executor phase needed.
8181
Complete(P),
@@ -90,7 +90,7 @@ impl<P: LogReplayProcessor> DriverProcessor<P> {
9090
/// - `processor`: The log replay processor
9191
/// - `log_segment`: The log segment to process
9292
/// - `engine`: Engine for reading files
93-
#[allow(unused)]
93+
#[allow(unused)]
9494
pub(crate) fn try_new(
9595
processor: P,
9696
log_segment: Arc<LogSegment>,
@@ -120,7 +120,7 @@ impl<P: LogReplayProcessor> DriverProcessor<P> {
120120
log_segment,
121121
})
122122
}
123-
123+
124124
/// Complete driver phase and extract processor + files for distribution.
125125
///
126126
/// Must be called after the iterator is exhausted.
@@ -190,7 +190,9 @@ mod tests {
190190
use super::*;
191191
use crate::scan::log_replay::ScanLogReplayProcessor;
192192
use crate::scan::state_info::StateInfo;
193-
use crate::utils::test_utils::{assert_result_error_with_message, load_extracted_test_table, load_test_table_with_data};
193+
use crate::utils::test_utils::{
194+
assert_result_error_with_message, load_extracted_test_table, load_test_table_with_data,
195+
};
194196
use crate::{Engine, SnapshotRef};
195197
use std::sync::Arc;
196198

0 commit comments

Comments
 (0)