Skip to content

Commit

Permalink
Patch in #15515
Browse files Browse the repository at this point in the history
  • Loading branch information
dpcollins-google committed Sep 28, 2021
1 parent 1abd6ba commit d60e52f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ public PollResult<Partition> apply(TopicPath element, Context c) {
})
.withPollInterval(pollDuration)
.withTerminationPerInput(
terminate
? Watch.Growth.afterTotalOf(pollDuration.multipliedBy(10))
: Watch.Growth.never()));
terminate ? Watch.Growth.afterIterations(10) : Watch.Growth.never()));
return partitions.apply(
MapElements.into(TypeDescriptor.of(SubscriptionPartition.class))
.via(kv -> SubscriptionPartition.of(subscription, kv.getValue())));
Expand Down

0 comments on commit d60e52f

Please sign in to comment.