-
Notifications
You must be signed in to change notification settings - Fork 690
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
Minor: Http2SolrClient cleanups #2453
Conversation
mrrv.request | ||
.onRequestQueued(asyncTracker.queuedListener) | ||
.onComplete(asyncTracker.completeListener) | ||
.send( | ||
new InputStreamResponseListener() { | ||
// MDC snapshot from requestAsync's thread | ||
MDCCopyHelper mdcCopyHelper = new MDCCopyHelper(); |
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.
just reducing the scope of this var
@@ -629,12 +624,6 @@ private static class MakeRequestReturnValue { | |||
} | |||
} | |||
|
|||
private Request makeRequestAndSend( |
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.
used to be longer but after recent changes, it's pointless; inlining is clear
@@ -438,13 +435,14 @@ public CompletableFuture<NamedList<Object>> requestAsync( | |||
future.completeExceptionally(e); | |||
return future; | |||
} | |||
final ResponseParser parser = | |||
solrRequest.getResponseParser() == null ? this.parser : solrRequest.getResponseParser(); |
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.
not used; the parser is used but is considered elsewhere
I'll merge this in a couple days if I don't hear anything back. |
pure refactoring (cherry picked from commit 0827de2)
Just a few small matters; no material changes.