kaushik-develop commented on a change in pull request #11643:
URL: https://github.com/apache/pulsar/pull/11643#discussion_r687935502
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/resourcegroup/ResourceQuotaCalculatorImpl.java
##########
@@ -60,7 +68,11 @@ public long computeLocalQuota(long confUsage, long myUsage,
long[] allUsages) th
float myUsageFraction = (float) myUsage / totalUsage;
float calculatedQuota = max(myUsage + residual * myUsageFraction, 0);
- return (long) calculatedQuota;
+ val longCalculatedQuota = (long) calculatedQuota;
Review comment:
No explicit need. I am just more used to the deciphering of types
(through my C++11 and later background) by compiler support, instead of by the
programmer, and the Pulsar style checks don't seem to prevent this usage.
--
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]