sarankk commented on code in PR #189: URL: https://github.com/apache/cassandra-sidecar/pull/189#discussion_r1970621437
########## client/src/main/java/org/apache/cassandra/sidecar/client/SidecarClient.java: ########## @@ -113,6 +115,22 @@ public CompletableFuture<HealthResponse> sidecarHealth() .build()); } + /** + * Executes the Sidecar health request using the configured selection policy and with no retries + * + * @return a completable future of the Sidecar health response + */ + public CompletableFuture<HealthResponse> peerHealth(SidecarInstance instance) + { + return executor.executeRequestAsync(requestBuilder() + .singleInstanceSelectionPolicy( + new SidecarInstanceImpl(instance.hostname(), Review Comment: Why not share `instance` here instead of creating a new one? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org