Skip to content

Commit

Permalink
Fix faulty check in assignment to isolation level
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Nov 22, 2023
1 parent f6c940a commit daf84e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (k *Kafka) reader(readerConfig *ReaderConfig) *kafkago.Reader {
}

isolationLevel := IsolationLevels[isolationLevelReadUncommitted]
if readerConfig.IsolationLevel == "" {
if readerConfig.IsolationLevel != "" {
isolationLevel = IsolationLevels[readerConfig.IsolationLevel]
}

Expand Down

0 comments on commit daf84e7

Please sign in to comment.