nickva commented on a change in pull request #6:
URL: https://github.com/apache/couchdb-ibrowse/pull/6#discussion_r643450507
##########
File path: src/ibrowse_http_client.erl
##########
@@ -463,9 +463,14 @@ accumulate_response(Data, #state{reply_buffer =
RepBuf,
State#state{reply_buffer = RepBuf_1}
end.
+strictly_monotonic_timestamp() ->
+ {A, B, _} = erlang:timestamp(),
+ Unique = erlang:unique_integer([positive, monotonic]),
+ {A, B, Unique}.
Review comment:
To keep the microseconds in the format, in case the VM is restarted
within one second, we could make the A be the unix seconds, C be microseconds
then the unique value.
Maybe it can be something like `{A * 1000000 + B, C, Unique}
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]