Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tonic options max_decoding_message_size/max_encoding_message_size #69

Merged
merged 1 commit into from
Nov 19, 2023

Conversation

harscoet
Copy link
Contributor

Currently its not possible to define tonic options to change max_encoding_message_size and max_decoding_message_size
I redefined them in KvClient and WatchClient (I didn't add max_encoding_message_size for watch client as I don't see any use case for it)

let etcd_client = etcd_client::Client::connect(["localhost:2379"], None).await.unwrap();

let etcd_kv_client = etcd_client
  .kv_client()
  .max_encoding_message_size(10* 1024 * 1024);
  .max_decoding_message_size(10* 1024 * 1024);

let etcd_watch_client = etcd_client
  .watch_client()
  .max_decoding_message_size(10* 1024 * 1024);

@davidli2010
Copy link
Contributor

LGTM, thanks!

@davidli2010 davidli2010 merged commit 290dff8 into etcdv3:master Nov 19, 2023
1 check passed
@harscoet harscoet deleted the tonic-options branch November 20, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants