Skip to content

Commit d391f5b

Browse files
authored
[misc] Improve output performance by changing Producer to use sendAsync (#25)
1 parent 1742f32 commit d391f5b

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/org/apache/pulsar/logstash/outputs

1 file changed

+1
-1
lines changed

src/main/java/org/apache/pulsar/logstash/outputs/Pulsar.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public void output(final Collection<Event> events) {
224224
logger.debug("topic is {}, message is {}", eventTopic, s);
225225
getProducer(eventTopic).newMessage()
226226
.value(s.getBytes())
227-
.send();
227+
.sendAsync();
228228
} catch (Exception e) {
229229
logger.error("fail to send message", e);
230230
}

0 commit comments

Comments
 (0)