Skip to content

Commit

Permalink
fix(gcp_pubsub source): Remove Tonic default 4MB decode size limit (#…
Browse files Browse the repository at this point in the history
…22091)

* Remove Tonic default 4MB decode size limit

* Changelog entry

* Update changelog.d/22090_remove_gcp_pubsub_msg_size_limit.fix.md

---------

Co-authored-by: Jesse Szwedko <[email protected]>
Co-authored-by: Jesse Szwedko <[email protected]>
  • Loading branch information
3 people authored Jan 3, 2025
1 parent 35845a1 commit 3b90e26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.d/22090_remove_gcp_pubsub_msg_size_limit.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The `gcp_pubsub` source no longer has a 4MB message size limit.

authors: sbalmos
4 changes: 3 additions & 1 deletion src/sources/gcp_pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,9 @@ impl PubsubSource {
}
Ok(req)
},
);
)
// Tonic added a default of 4MB in 0.9. This replaces the old behavior.
.max_decoding_message_size(usize::MAX);

let (ack_ids_sender, ack_ids_receiver) = mpsc::channel(ACK_QUEUE_SIZE);

Expand Down

0 comments on commit 3b90e26

Please sign in to comment.