-
Notifications
You must be signed in to change notification settings - Fork 119
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
fix(provider-sdk): use send_request to handle request timeout #1439
Conversation
f92eded
to
18b00bf
Compare
It looks like |
Hey @Iceber,
For providers that need to send messages with a custom timeout, we have I think you did find a bug, however: if a provider calls So I think the fix should be to remove the To extend the timeout, we will need to refactor the call to |
Yes, it would be more appropriate to use send_request, and I'll update this pr |
073de22
to
dcd2184
Compare
99d35a0
to
ab7f6e4
Compare
Hi @connorsmith256 , I replaced maybe_request with send_request to solve the problem of timeout conflicts in RpcClient. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for fixing this @Iceber. I'll wait to see if @thomastaylor312 has any other feedback before merging
EDIT: we're blocked on merging currently, as we debug an issue in CI. Stand by 🙏
@Iceber would you mind rebasing off main? I think we've resolved the issue in CI, but it's still happening on your branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks all good. Merge away @connorsmith256! Thanks for the fix @Iceber
Signed-off-by: Iceber Gu <caiwei95@hotmail.com>
ab7f6e4
to
e339475
Compare
Feature or Problem
rpc_client.request
will always use the default timeout, and even if the user sets a larger timeout, we will still be limited by it.wasmCloud/crates/provider-sdk/src/rpc_client.rs
Lines 214 to 218 in 6219096
wasmCloud/crates/provider-sdk/src/rpc_client.rs
Lines 251 to 255 in 6219096
use
send_request
to send the requestRelated Issues
Release Information
Consumer Impact
Testing
Unit Test(s)
Acceptance or Integration
Manual Verification