Skip to content

Commit

Permalink
chore: set the commit_size to 2000
Browse files Browse the repository at this point in the history
  • Loading branch information
gk-kindred committed Nov 11, 2024
1 parent 38496b7 commit 111b266
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async fn main() {
kafka_config,
allowed_actions,
channel_buffers: None,
commit_size: None,
commit_size: Some(2_000),
};

messenger_with_kafka(config).await.unwrap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ where
debug!("[Commit] Updating tpl to version .. {commit_offset}");
let _ = self.message_receiver.update_offset_to_commit(commit_offset as i64);

let _ = self.message_receiver.commit();
let _ = self.message_receiver.commit_async();
}
}
}
Expand Down

0 comments on commit 111b266

Please sign in to comment.