Skip to content

Commit

Permalink
Oops, too much cut&paste I think
Browse files Browse the repository at this point in the history
  • Loading branch information
coryan committed Jun 13, 2022
1 parent df78cef commit c4ba1c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/cloud/pubsub/internal/default_batch_sink.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ DefaultBatchSink::AsyncPublish(google::pubsub::v1::PublishRequest request) {
auto const& current = internal::CurrentOptions();
if (current.has<CompressionThresholdOption>() &&
current.has<CompressionAlgorithmOption>()) {
auto const threshold = current.has<CompressionThresholdOption>();
auto const threshold = current.get<CompressionThresholdOption>();
if (RequestSize(request) >= threshold) {
context->set_compression_algorithm(
static_cast<grpc_compression_algorithm>(
Expand Down

0 comments on commit c4ba1c3

Please sign in to comment.