Skip to content

Commit

Permalink
Rename ProcessorState method
Browse files Browse the repository at this point in the history
  • Loading branch information
pcholakov committed Nov 19, 2024
1 parent b1c89f4 commit 9f6d162
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/worker/src/partition_processor_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ impl PartitionProcessorManager {
}
};

if !processor_state.should_publish_snapshot() {
if !processor_state.should_publish_snapshots() {
let _ = sender.send(Err(SnapshotError::InvalidState(partition_id)));
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ impl ProcessorState {
/// The Partition Processor is in a state in which it is acceptable to create and publish
/// snapshots. Since we don't want newer snapshots to move backwards in applied LSN, the current
/// implementation checks whether the processor is fully caught up with the log.
pub fn should_publish_snapshot(&self) -> bool {
pub fn should_publish_snapshots(&self) -> bool {
match self {
ProcessorState::Started {
processor: Some(started_processor),
Expand Down

0 comments on commit 9f6d162

Please sign in to comment.