-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 support for per request timeout options. Fixes #562 #961
Conversation
Thank you for this PR. Before we continue, please correct the formatting changes included in the PR by running |
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 very good. In addition to my other comments, can you add a Unit Test?
if (argv == null || argv.length == 0) { | ||
return this.options; | ||
} | ||
return Stream.of(argv).filter(o -> o instanceof Options).findAny().map(o -> (Options) o) |
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.
I don't believe you need the findAny()
. This can be simplified:
return (Options) Stream.of(argv)
.filter(arg -> arg instanceof Options)
.findFirst()
.orElse(this.options);
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.
I have a few concerns about this change....
First being not tests.
I think this will cause problems when combining body
and options
* Aadd Options Test * Ignore Options when set bodyIndex
😮 |
A new PR: #970 |
Adds support for per request timeout options
Fixes #562
As @kdavisk6 said
In Spring Cloud