Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@yukiiiteru
Copy link
Member

@yukiiiteru yukiiiteru commented Aug 9, 2024

Motivation

Putting request related config in MetaServiceConfig will be difficult to maintain.

In addition, use Option<Duration> for timeout interfaces is unnecessary, but it will introduce many breaking changes.

Solution

Move timeout and fail_on_error_status from MetaServiceConfig into context and when client creates a request, it will clone the config into context.

Revert changes for timeout related interfaces.

@yukiiiteru yukiiiteru requested review from a team as code owners August 9, 2024 09:25
@yukiiiteru yukiiiteru marked this pull request as draft August 9, 2024 09:27
Millione
Millione previously approved these changes Aug 9, 2024
Putting request related config in `MetaServiceConfig` will be
difficult to maintain, so in this commit we put them in context
and when client creates a request, it will clone the config into
context.

In addition, use `Option<Duration>` for timeout interfaces is
unnecessary, but it will introduce many breaking changes. This commit
also revert those changes.

Signed-off-by: Yu Li <[email protected]>
@yukiiiteru yukiiiteru marked this pull request as ready for review August 14, 2024 07:08
@yukiiiteru yukiiiteru changed the title chore(volo-http): do not use Option<Duration> for timeout interfaces chore(volo-http): do not put meta config in service Aug 14, 2024
@yukiiiteru yukiiiteru merged commit b7b1884 into cloudwego:main Aug 14, 2024
@yukiiiteru yukiiiteru deleted the chore/timeout branch August 14, 2024 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants