Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Commit

Permalink
fix to prevent empty messages from being posted
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-catignani committed Dec 8, 2015
1 parent 1ef2968 commit b5a05c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/uber/kafkaSpraynozzle/KafkaPoster.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ public void run() {
}

private boolean postBatchEvents(List<ByteArrayEntity> batch) {
if (batch.isEmpty()) {
return true;
}

final long NANOS_PER_SECOND = 1000L * 1000L * 1000L;
final long NANOS_PER_MILLI_SECOND = 1000L * 1000L;
int pickedUrlIdx = currentUrl;
Expand Down

0 comments on commit b5a05c0

Please sign in to comment.