Skip to content

Commit 4c107d8

Browse files
authored
fix: maxOutstandingMessages should be defined without maxOutstandingRequestBytes (#349)
1 parent 25c152b commit 4c107d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/google/pubsub/kafka/sink/CloudPubSubSinkTask.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ private boolean useFlowControl() {
433433
// only enable flow control if at least one flow control config has been set
434434
return maxOutstandingRequestBytes
435435
!= CloudPubSubSinkConnector.DEFAULT_MAX_OUTSTANDING_REQUEST_BYTES
436-
|| maxOutstandingRequestBytes != CloudPubSubSinkConnector.DEFAULT_MAX_OUTSTANDING_MESSAGES;
436+
|| maxOutstandingMessages != CloudPubSubSinkConnector.DEFAULT_MAX_OUTSTANDING_MESSAGES;
437437
}
438438

439439
@Override

0 commit comments

Comments
 (0)