Skip to content

Commit c0bad2d

Browse files
author
Nathan Speidel
committed
Minor fix
1 parent dc8e48c commit c0bad2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/storm/src/main/java/com/yahoo/bullet/storm/examples/RandomSpout.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ public void nextTuple() {
120120
if (timeNow <= nextIntervalStart && generatedThisPeriod < maxPerPeriod) {
121121
outputCollector.emit(new Values(generateRecord()), DUMMY_ID);
122122
generatedThisPeriod++;
123+
return;
123124
}
124125
if (timeNow > nextIntervalStart) {
125126
log.info("Generated {} tuples out of {}", generatedThisPeriod, maxPerPeriod);

0 commit comments

Comments
 (0)