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

feat: use PingAndWarm request for channel priming #1179

Merged
merged 7 commits into from
Jul 19, 2022
Prev Previous commit
Next Next commit
adding todo
  • Loading branch information
mutianf committed Jul 19, 2022
commit 1b047454cedda7399f90c7aa8283215139e459ce
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ private void sendPrimeRequests(ManagedChannel managedChannel) throws IOException
try {
stub.pingAndWarmCallable().call(request);
igorbernstein2 marked this conversation as resolved.
Show resolved Hide resolved
} catch (Throwable e) {
mutianf marked this conversation as resolved.
Show resolved Hide resolved
// TODO: Not sure if we should swallow the error here. We are pre-emptively swapping channels if the new
// channel is bad.
if (e instanceof ExecutionException) {
e = e.getCause();
}
Expand Down