Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
fix: fixed bug where replication factor wasn't set
Browse files Browse the repository at this point in the history
refs: #181
  • Loading branch information
ChrisRousey committed Mar 23, 2023
1 parent 322aed4 commit 5c8ca5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private static int getPartitions(Map<String, Object> topicConfig) {

private static Short getReplicationFactor(Map<String, Object> topicConfig) {
if (topicConfig.get(REPLICATION_FACTOR) instanceof String repFactor
&& !topicConfig.get(PARTITION_COUNT).toString().isEmpty()) {
&& !topicConfig.get(REPLICATION_FACTOR).toString().isEmpty()) {
return Short.valueOf(repFactor);
}
return DEFAULT_REPLICATION_FACTOR;
Expand Down

0 comments on commit 5c8ca5a

Please sign in to comment.