szetszwo commented on code in PR #744:
URL: https://github.com/apache/ratis/pull/744#discussion_r1277875996
##########
ratis-grpc/src/main/java/org/apache/ratis/grpc/metrics/MessageMetrics.java:
##########
@@ -82,7 +82,7 @@ public void rpcCompleted(String metricNamePrefix){
/**
* Increments the count of RPCs received on the server.
*/
- public void rpcReceived(String metricNamePrefix){
+ synchronized public void rpcReceived(String metricNamePrefix){
Review Comment:
Is the `synchronized` still needed?
If yes, why not `synchronized` the other methods?
--
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]