mattisonchao commented on code in PR #18818:
URL: https://github.com/apache/pulsar/pull/18818#discussion_r1043206838
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/LinuxBrokerHostUsageImpl.java:
##########
@@ -121,10 +122,12 @@ public void calculateBrokerHostUsage() {
this.usage = usage;
}
- private double getTotalNicLimitWithConfiguration(List<String> nics) {
+ @VisibleForTesting
+ public double getTotalNicLimitWithConfiguration(List<String> nics) {
Review Comment:
`@VisibleForTesting ` is used to notify this method public for testing. If I
change it to private the test can not work anymore.
--
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]