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

Minor: Http2SolrClient cleanups #2453

Merged
merged 1 commit into from May 23, 2024
Merged

Conversation

dsmiley
Copy link
Contributor

@dsmiley dsmiley commented May 9, 2024

Just a few small matters; no material changes.

mrrv.request
.onRequestQueued(asyncTracker.queuedListener)
.onComplete(asyncTracker.completeListener)
.send(
new InputStreamResponseListener() {
// MDC snapshot from requestAsync's thread
MDCCopyHelper mdcCopyHelper = new MDCCopyHelper();
Copy link
Contributor Author

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(
Copy link
Contributor Author

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();
Copy link
Contributor Author

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

@dsmiley
Copy link
Contributor Author

dsmiley commented May 17, 2024

I'll merge this in a couple days if I don't hear anything back.
CC @jdyer1

@dsmiley dsmiley merged commit 0827de2 into apache:main May 23, 2024
4 checks passed
@dsmiley dsmiley deleted the minor_Http2SolrClient branch May 23, 2024 01:08
dsmiley added a commit that referenced this pull request May 23, 2024
pure refactoring

(cherry picked from commit 0827de2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant