Skip to content

Commit

Permalink
fix: Set batching settings on SinglePartitionPublisher (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpcollins-google committed Mar 29, 2021
1 parent 343afbf commit 3b099d0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.google.cloud.pubsublite.AdminClientSettings;
import com.google.cloud.pubsublite.MessageMetadata;
import com.google.cloud.pubsublite.Partition;
import com.google.cloud.pubsublite.cloudpubsub.PublisherSettings;
import com.google.cloud.pubsublite.internal.Publisher;
import com.google.cloud.pubsublite.internal.wire.PartitionCountWatchingPublisherSettings;
import com.google.cloud.pubsublite.internal.wire.PubsubContext;
Expand Down Expand Up @@ -92,6 +93,7 @@ static Publisher<MessageMetadata> newPublisher(PublisherOptions options) throws
.setTopic(options.topicPath())
.setPartition(partition)
.setServiceClient(newServiceClient(options, partition))
.setBatchingSettings(PublisherSettings.DEFAULT_BATCHING_SETTINGS)
.build())
.setAdminClient(newAdminClient(options))
.build()
Expand Down

0 comments on commit 3b099d0

Please sign in to comment.