-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpcclient: Add a lifetime to requests.
Store the initial context in result types and stop waiting on context done with ErrRequestCanceled by giving all result types a context field and having receiveFuture stop waiting on context done with an ErrRequestCanceled. Result types have been changed from a channel of *response to a new cmdRes type that can hold the context. Remove duplicate funtion futureError and unused sendCmdAndWait.
- Loading branch information
1 parent
2320bd2
commit 04f4888
Showing
9 changed files
with
482 additions
and
482 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.