File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1 Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub'
58
58
If you are using Gradle without BOM, add this to your dependencies:
59
59
60
60
``` Groovy
61
- implementation 'com.google.cloud:google-cloud-pubsub:1.120.22 '
61
+ implementation 'com.google.cloud:google-cloud-pubsub:1.120.23 '
62
62
```
63
63
64
64
If you are using SBT, add this to your dependencies:
65
65
66
66
``` Scala
67
- libraryDependencies += " com.google.cloud" % " google-cloud-pubsub" % " 1.120.22 "
67
+ libraryDependencies += " com.google.cloud" % " google-cloud-pubsub" % " 1.120.23 "
68
68
```
69
69
70
70
## Authentication
Original file line number Diff line number Diff line change @@ -462,6 +462,10 @@ private ApiFuture<PublishResponse> publishCall(OutstandingBatch outstandingBatch
462
462
}
463
463
464
464
private void publishOutstandingBatch (final OutstandingBatch outstandingBatch ) {
465
+ if (outstandingBatch .size () == 0 ) {
466
+ logger .log (Level .WARNING , "Attempted to publish batch with zero messages." );
467
+ return ;
468
+ }
465
469
final ApiFutureCallback <PublishResponse > futureCallback =
466
470
new ApiFutureCallback <PublishResponse >() {
467
471
@ Override
You can’t perform that action at this time.
0 commit comments