This is an automated email from the ASF dual-hosted git repository.
xyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 4d4db6b remove redundant code (#12424)
4d4db6b is described below
commit 4d4db6baa8e24b2d0bd465f053685af5f58dd4d0
Author: Aloys <[email protected]>
AuthorDate: Thu Oct 21 15:11:06 2021 +0800
remove redundant code (#12424)
### Motivation
Remove reduncant code
### Modifications
Remove one line reduncant code
---
.../org/apache/pulsar/broker/validator/MultipleListenerValidator.java | 1 -
1 file changed, 1 deletion(-)
diff --git
a/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/validator/MultipleListenerValidator.java
b/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/validator/MultipleListenerValidator.java
index 82258c3..ce02da9 100644
---
a/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/validator/MultipleListenerValidator.java
+++
b/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/validator/MultipleListenerValidator.java
@@ -97,7 +97,6 @@ public final class MultipleListenerValidator {
}
}
String hostPort = String.format("%s:%d", uri.getHost(),
uri.getPort());
- reverseMappings.computeIfAbsent(hostPort, k ->
Sets.newTreeSet());
Set<String> sets =
reverseMappings.computeIfAbsent(hostPort, k -> Sets.newTreeSet());
sets.add(entry.getKey());
if (sets.size() > 1) {