merlimat commented on a change in pull request #13057:
URL: https://github.com/apache/pulsar/pull/13057#discussion_r769175594



##########
File path: 
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java
##########
@@ -1173,7 +1173,7 @@ static OpSendMsg create(MessageImpl<?> msg, ByteBufPair 
cmd, long sequenceId, Se
             op.cmd = cmd;
             op.callback = callback;
             op.sequenceId = sequenceId;
-            op.createdAt = System.nanoTime();
+            op.createdAt = System.currentTimeMillis();

Review comment:
       We use `nanoTime` when measuring latencies which can be <1millisecond. 
In this case, it seems appropriate to use mills since it's just trying to given 
an indication of the retries that happened.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to