Skip to content

Commit d594422

Browse files
---
yaml --- r: 17985 b: refs/heads/autosynth-websecurityscanner c: 052c4a9 h: refs/heads/master i: 17983: 3358fca
1 parent 8711bfa commit d594422

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • branches/autosynth-websecurityscanner/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ refs/heads/autosynth-speech: 75d6c62a9d07d3a3642980502a25d07fbde0f232
145145
refs/heads/autosynth-tasks: b0cdb991f3f75345151a3f68db1aab273dfc069b
146146
refs/heads/autosynth-texttospeech: 2dcc5dc22be0f456caa1b6a8a4bcdace2641239c
147147
refs/heads/autosynth-trace: db35fc1080cc51034e9c431c141cbceb53fb19c1
148-
refs/heads/autosynth-websecurityscanner: 821bf93dc663f0d249575f6117a4f3a0e121ae1d
148+
refs/heads/autosynth-websecurityscanner: 052c4a9826fa988ec129bea3dc1324ff5f5cd430
149149
refs/heads/bigquerystorage: 06db74d123d7f8a3ef48755c2fcabed09faf8e64
150150
refs/heads/elharo-patch-1: ce159ef828d3c545991ff78e7b6e0d912a9453e9
151151
refs/heads/mrschmidt-numericadd: 96509abadf6190b7886d57fdd9b090da55f5171c

branches/autosynth-websecurityscanner/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)