revert breakage to chat handlers

This commit is contained in:
fjy 2014-07-29 21:55:05 -07:00
parent 3920300900
commit ecbc9eda48
1 changed files with 4 additions and 1 deletions

View File

@ -91,6 +91,9 @@ public class EventReceiverFirehoseFactory implements FirehoseFactory<MapInputRow
if (chatHandlerProvider.isPresent()) {
log.info("Found chathandler of class[%s]", chatHandlerProvider.get().getClass().getName());
chatHandlerProvider.get().register(serviceName, firehose);
if (serviceName.contains(":")) {
chatHandlerProvider.get().register(serviceName.replaceAll(".*:", ""), firehose); // rofl
}
} else {
log.info("No chathandler detected");
}
@ -143,7 +146,7 @@ public class EventReceiverFirehoseFactory implements FirehoseFactory<MapInputRow
for (final Map<String, Object> event : events) {
// Might throw an exception. We'd like that to happen now, instead of while adding to the row buffer.
InputRow row = parser.parse(event);
rows.add(Rows.toCaseInsensitiveInputRow(row,row.getDimensions()));
rows.add(Rows.toCaseInsensitiveInputRow(row, row.getDimensions()));
}
try {