Skip to content

Commit

Permalink
fix(rust): Don't produce commit log in --skip-write mode (#5385)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnagara committed Jan 12, 2024
1 parent 4bf9b58 commit b36448e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion rust_snuba/src/factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl ProcessingStrategyFactory<KafkaPayload> for ConsumerStrategyFactory {
self.physical_topic_name,
self.physical_consumer_group.clone(),
&self.commitlog_concurrency,
false,
self.skip_write,
))
} else {
Box::new(next_step)
Expand Down
1 change: 0 additions & 1 deletion rust_snuba/src/strategies/commit_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ pub struct ProduceCommitLog {
}

impl ProduceCommitLog {
#[allow(dead_code)]
pub fn new<N>(
next_step: N,
producer: Arc<dyn Producer<KafkaPayload> + 'static>,
Expand Down

0 comments on commit b36448e

Please sign in to comment.