We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7dda32 commit 2b03685Copy full SHA for 2b03685
app/src/main/java/io/scalaproject/vault/data/NodeInfo.java
@@ -230,7 +230,11 @@ private boolean testRpcService(int port) {
230
Request request = OkHttpHelper.getPostRequest(url, reqBody);
231
long ta = System.nanoTime();
232
try (Response response = client.newCall(request).execute()) {
233
- responseTime = (System.nanoTime() - ta) / 1000000.0;
+ if(getHost().contains("remote.") && getHost().contains("scala")) // always prioritize Scala nodes
234
+ responseTime = 0;
235
+ else
236
+ responseTime = (System.nanoTime() - ta) / 1000000.0;
237
+
238
responseCode = response.code();
239
if (response.isSuccessful()) {
240
ResponseBody respBody = response.body(); // closed through Response object
0 commit comments