Skip to content

Commit

Permalink
Merge pull request #397 from rabbitmq/sac-support
Browse files Browse the repository at this point in the history
Convert x-single-active-consumer to a bool
  • Loading branch information
michaelklishin authored Oct 1, 2022
2 parents 0f665df + 3b21a9e commit 10942f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/rabbitmq/perf/PerfTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,9 @@ static Map<String, Object> convertKeyValuePairs(String arg) {
}).map(keyValue -> {
if ("x-dead-letter-exchange".equals(keyValue[0]) && "amq.default".equals(keyValue[1])) {
return new String[] {"x-dead-letter-exchange", ""};
}
else if ("x-single-active-consumer".equals(keyValue[0])) {
return new Object[] {"x-single-active-consumer", Boolean.parseBoolean(String.valueOf(keyValue[1]))};
} else {
return keyValue;
}
Expand Down

0 comments on commit 10942f4

Please sign in to comment.