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
Hi expert !
Our client is basic tonic::client::Grpc<tonic::transport::Channel> , try put it in the rust GLOBAL_VALUE like pub static for reuse in in global.
/// Sending a request on a channel requires a `&mut self` and thus can only send
/// one request in flight. This is intentional and is required to follow the `Service`
/// contract from the `tower` library which this channel implementation is built on
/// top of.
Is it ok to use the single global client do RPC call get Steam results in parallel 🤔 ? How should i check this from the code? if you have any suggestion really appreciate
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi expert !
Our client is basic
tonic::client::Grpc<tonic::transport::Channel>
, try put it in the rust GLOBAL_VALUE likepub static
for reuse in in global.Found the doc said
https://github.com/hyperium/tonic/blob/b3fca19104bf001d3a3dac74221b7c9bede13cf1/tonic/src/transport/channel/mod.rs#L52C3-L56
Is it ok to use the single global client do RPC call get
Steam
results in parallel 🤔 ? How should i check this from the code? if you have any suggestion really appreciateBeta Was this translation helpful? Give feedback.
All reactions