You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Darwin MacBook-Pro.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6020 arm64
Crates
tonic_build
Description
A server implementation generated by tonic_build has a with_interceptor func and it takes two arguments inner: T, interceptor: F,.
However max_decoding_message_size / max_encoding_message_size are methods on the server so it's impossible to use with_interceptor along with max_decoding_message_size / max_encoding_message_size.
There is a workaround like the below
use tonic::codegen::InterceptedService;
...InterceptedService::new(XXXServer::new(inner).max_decoding_message_size(8388608).max_encoding_message_size(8388608),
intercept,// impl Interceptor )
However it might be better to allow developers to write
Bug Report
Version
0.12.3
Platform
Darwin MacBook-Pro.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6020 arm64
Crates
tonic_build
Description
A server implementation generated by tonic_build has a
with_interceptor
func and it takes two argumentsinner: T, interceptor: F,
.However
max_decoding_message_size
/max_encoding_message_size
are methods on the server so it's impossible to use with_interceptor along with max_decoding_message_size / max_encoding_message_size.There is a workaround like the below
However it might be better to allow developers to write
The text was updated successfully, but these errors were encountered: