Skip to content

Commit 235bbd7

Browse files
committed
fix typo
1 parent 8faecf0 commit 235bbd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/nats/client/impl/NatsConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ public Duration RTT() throws IOException {
15271527
pongQueue.add(pongFuture);
15281528
try {
15291529
long time = NatsSystemClock.nanoTime();
1530-
writer.queueInternalMessage(new ProtocolMessage(PONG_PROTO));
1530+
writer.queueInternalMessage(new ProtocolMessage(PING_PROTO));
15311531
pongFuture.get(timeout, TimeUnit.MILLISECONDS);
15321532
return Duration.ofNanos(NatsSystemClock.nanoTime() - time);
15331533
}

0 commit comments

Comments
 (0)