mirror of https://github.com/apache/druid.git
Remove duplicate registration of service
If the serviceName does not contain ":" this leads to duplicate registration of firehose with same name
This commit is contained in:
parent
81cdf1b6d0
commit
d28f9daccb
|
@ -86,7 +86,6 @@ public class EventReceiverFirehoseFactory implements FirehoseFactory
|
|||
if (chatHandlerProvider.isPresent()) {
|
||||
log.info("Found chathandler of class[%s]", chatHandlerProvider.get().getClass().getName());
|
||||
chatHandlerProvider.get().register(serviceName, firehose);
|
||||
chatHandlerProvider.get().register(serviceName.replaceAll(".*:", ""), firehose); // rofl
|
||||
} else {
|
||||
log.info("No chathandler detected");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue