Use current timestamp as 'id' for comment server request

This commit is contained in:
Javi Rueda 2021-02-24 14:45:24 +01:00
parent c4445e85b9
commit 20579eff12

View file

@ -65,7 +65,7 @@ public class Comments {
Map<String, Object> requestParams = new HashMap<>(4);
requestParams.put("jsonrpc", "2.0");
requestParams.put("id",1);
requestParams.put("id", TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis()));
requestParams.put("method", method);
requestParams.put("params", params);