Skip to content

Commit f7ed77f

Browse files
kimkyung-googpongad
authored andcommitted
pubsub: minor doc fix for Publisher (#3501)
1 parent 287fa6d commit f7ed77f

File tree

1 file changed

+3
-3
lines changed
  • google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1

1 file changed

+3
-3
lines changed

google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public ApiFuture<String> publish(PubsubMessage message) {
203203
final OutstandingPublish outstandingPublish = new OutstandingPublish(publishResult, message);
204204
messagesBatchLock.lock();
205205
try {
206-
// Check if the next message makes the batch exceed the current batch byte size.
206+
// Check if the next message makes the current batch exceed the max batch byte size.
207207
if (!messagesBatch.isEmpty()
208208
&& hasBatchingBytes()
209209
&& batchedBytes + messageSize >= getMaxBatchBytes()) {
@@ -212,8 +212,8 @@ && hasBatchingBytes()
212212
batchedBytes = 0;
213213
}
214214

215-
// Border case if the message to send is greater equals to the max batch size then can't be
216-
// included in the current batch and instead sent immediately.
215+
// Border case if the message to send is greater or equals to the max batch size then can't
216+
// be included in the current batch and instead sent immediately.
217217
if (!hasBatchingBytes() || messageSize < getMaxBatchBytes()) {
218218
batchedBytes += messageSize;
219219
messagesBatch.add(outstandingPublish);

0 commit comments

Comments
 (0)