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

Commit

Permalink
Merge pull request #25 from uber/fix_empty_posts
Browse files Browse the repository at this point in the history
Fix to prevent empty messages from being posted
  • Loading branch information
chris-catignani committed Dec 8, 2015
2 parents 1ef2968 + b5a05c0 commit 365fd93
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 365fd93

Please sign in to comment.