-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(volo-http): use
Option<CallOpt>
rather than CallOpt
In the previous code, if there was a default `Target` and the request only had a `CallOpt` set, the new `CallOpt` would have no effect because the request had no `Target`. This commit fixes this by replacing `CallOpt` with `Option<CallOpt>`, and if there is only one `CallOpt`, we will use it directly. The `CallOpt` of request will only replace the default one if both the default and request callopt exist. Signed-off-by: Yu Li <[email protected]>
- Loading branch information
1 parent
0536f8b
commit 34b881c
Showing
8 changed files
with
170 additions
and
46 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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
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
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.