Skip to content

Commit

Permalink
Address reviewer comments
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvanoosten committed Jan 11, 2025
1 parent 00ff72c commit 2109932
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ final case class ConsumerSettings(
* which are part of an aborted transaction. Non-transactional records will be consumed unconditionally in either
* mode.
*/
def withConsumeTransactionalOnly(readCommitted: Boolean = true): ConsumerSettings = {
def withIsolationLevel(readCommitted: Boolean = true): ConsumerSettings = {
val isolationLevel = if (readCommitted) IsolationLevel.READ_COMMITTED else IsolationLevel.READ_UNCOMMITTED
withProperty(ConsumerConfig.ISOLATION_LEVEL_CONFIG, isolationLevel.toString)
}
Expand Down

0 comments on commit 2109932

Please sign in to comment.