Skip to content
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

Adds convenient overloaded constructor for Request.Options #2093

Merged
merged 4 commits into from Jun 22, 2023

Conversation

iwek7
Copy link
Contributor

@iwek7 iwek7 commented Jun 19, 2023

This proposes adding new convenient constructor for Request.Options that enables us to pass timeout as duration. In my apps timeout is very often passed around as duration, which is imo better than moving it around as magic number without explicit unit attached. This constructor overload simply feels like it should be there from user perspective.

Copy link
Member

@velo velo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just need to pass build

@iwek7 iwek7 force-pushed the newOptionsConstructorMethod branch from 531385e to 0776122 Compare June 20, 2023 14:10
@iwek7
Copy link
Contributor Author

iwek7 commented Jun 20, 2023

build is fixed now

@velo velo merged commit 0d2590c into OpenFeign:master Jun 22, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants