Use commentron instead of Comment SDK calls #1149
|
@ -65,7 +65,7 @@ public class Comments {
|
||||||
Changed in the new commit Changed in the new commit
I think you can just use the current timestamp as the id here. Although we're not tracing request JSON RPC request IDs at the moment, we may want to in the future. I think you can just use the current timestamp as the id here. Although we're not tracing request JSON RPC request IDs at the moment, we may want to in the future.
Changed in the new commit Changed in the new commit
|
|||||||
|
|
||||||
Map<String, Object> requestParams = new HashMap<>(4);
|
Map<String, Object> requestParams = new HashMap<>(4);
|
||||||
requestParams.put("jsonrpc", "2.0");
|
requestParams.put("jsonrpc", "2.0");
|
||||||
requestParams.put("id",1);
|
requestParams.put("id", TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis()));
|
||||||
I think you can just use the current timestamp as the id here. Although we're not tracing request JSON RPC request IDs at the moment, we may want to in the future. I think you can just use the current timestamp as the id here. Although we're not tracing request JSON RPC request IDs at the moment, we may want to in the future.
Changed in the new commit Changed in the new commit
I think you can just use the current timestamp as the id here. Although we're not tracing request JSON RPC request IDs at the moment, we may want to in the future. I think you can just use the current timestamp as the id here. Although we're not tracing request JSON RPC request IDs at the moment, we may want to in the future.
Changed in the new commit Changed in the new commit
|
|||||||
requestParams.put("method", method);
|
requestParams.put("method", method);
|
||||||
requestParams.put("params", params);
|
requestParams.put("params", params);
|
||||||
|
|
||||||
|
|
||||||
I think you can just use the current timestamp as the id here. Although we're not tracing request JSON RPC request IDs at the moment, we may want to in the future. I think you can just use the current timestamp as the id here. Although we're not tracing request JSON RPC request IDs at the moment, we may want to in the future.
Changed in the new commit Changed in the new commit
I think you can just use the current timestamp as the id here. Although we're not tracing request JSON RPC request IDs at the moment, we may want to in the future. I think you can just use the current timestamp as the id here. Although we're not tracing request JSON RPC request IDs at the moment, we may want to in the future.
Changed in the new commit Changed in the new commit
|
I think you can just use the current timestamp as the id here. Although we're not tracing request JSON RPC request IDs at the moment, we may want to in the future.