@@ -61,7 +61,7 @@ public class RateLimiterControllerTest { | |||||
public void run() { | public void run() { | ||||
boolean pass = paceController.canPass(node, 1); | boolean pass = paceController.canPass(node, 1); | ||||
if (pass == true) { | |||||
if (pass) { | |||||
passcount.incrementAndGet(); | passcount.incrementAndGet(); | ||||
} else { | } else { | ||||
blockcount.incrementAndGet(); | blockcount.incrementAndGet(); | ||||
@@ -108,7 +108,7 @@ public class DemoController { | |||||
try { | try { | ||||
e1 = SphU.entry(name); | e1 = SphU.entry(name); | ||||
if (slow == true) { | |||||
if (slow) { | |||||
TimeUnit.MILLISECONDS.sleep(3000); | TimeUnit.MILLISECONDS.sleep(3000); | ||||
} | } | ||||