Skip to content

Commit 8d8e480

Browse files
---
yaml --- r: 14181 b: refs/heads/autosynth-pubsub c: 052c4a9 h: refs/heads/master i: 14179: d5c96e0
1 parent f305cb8 commit 8d8e480

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ refs/heads/autosynth-compute: 8e86445e504cea6f99b9fb237bfd7f0e5ef8b3ce
116116
refs/heads/autosynth-container: f6384095f50b31bfc8208542a49181e158d3681c
117117
refs/heads/autosynth-dataproc: bc74a8841bc1693d7945d991d15979df550b1fd1
118118
refs/heads/autosynth-monitoring: e67db7395a868e5f6ecc3476eb4a91c47abd4234
119-
refs/heads/autosynth-pubsub: 821bf93dc663f0d249575f6117a4f3a0e121ae1d
119+
refs/heads/autosynth-pubsub: 052c4a9826fa988ec129bea3dc1324ff5f5cd430
120120
refs/heads/autosynth-video-intelligence: 3e8faeeee2f803271529bd6e89b621c1ca098628
121121
refs/heads/autosynth-vision: d758c43ba2ef4f4f7ad07b722617cb39fe3f29db
122122
refs/heads/spanner: 54a5e197bfe0a004e13c190427f46c3413ab572d

branches/autosynth-pubsub/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/PublisherSnippets.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ public Publisher getPublisherWithCustomBatchSettings(ProjectTopicName topicName)
9090
throws Exception {
9191
// [START pubsub_publisher_batch_settings]
9292
// Batch settings control how the publisher batches messages
93-
long requestBytesThreshold = 5000L; // default : 1kb
94-
long messageCountBatchSize = 10L; // default : 100
93+
long requestBytesThreshold = 5000L; // default : 1 byte
94+
long messageCountBatchSize = 10L; // default : 1 message
9595

9696
Duration publishDelayThreshold = Duration.ofMillis(100); // default : 1 ms
9797

0 commit comments

Comments
 (0)