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 8faecf0 commit 235bbd7Copy full SHA for 235bbd7
src/main/java/io/nats/client/impl/NatsConnection.java
@@ -1527,7 +1527,7 @@ public Duration RTT() throws IOException {
1527
pongQueue.add(pongFuture);
1528
try {
1529
long time = NatsSystemClock.nanoTime();
1530
- writer.queueInternalMessage(new ProtocolMessage(PONG_PROTO));
+ writer.queueInternalMessage(new ProtocolMessage(PING_PROTO));
1531
pongFuture.get(timeout, TimeUnit.MILLISECONDS);
1532
return Duration.ofNanos(NatsSystemClock.nanoTime() - time);
1533
}
0 commit comments