From c098f16018f4438332df5fffa053d6ae73a8a646 Mon Sep 17 00:00:00 2001 From: brycezhongqing Date: Mon, 20 Nov 2023 16:11:48 -0800 Subject: [PATCH] resolve nit --- .../com/linkedin/d2/balancer/dualread/DualReadLoadBalancer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2/src/main/java/com/linkedin/d2/balancer/dualread/DualReadLoadBalancer.java b/d2/src/main/java/com/linkedin/d2/balancer/dualread/DualReadLoadBalancer.java index 0c505a9d52..0dfbc5e22d 100644 --- a/d2/src/main/java/com/linkedin/d2/balancer/dualread/DualReadLoadBalancer.java +++ b/d2/src/main/java/com/linkedin/d2/balancer/dualread/DualReadLoadBalancer.java @@ -78,7 +78,7 @@ public DualReadLoadBalancer(LoadBalancerWithFacilities oldLb, LoadBalancerWithFa _newLb = newLb; _dualReadStateManager = dualReadStateManager; _isNewLbReady = false; - if(newLbExecutor == null) + if (newLbExecutor == null) { // Using a direct executor here means the code is executed directly, // blocking the caller. This means the old behavior is preserved.