From 7e40ee3f629ea06b0159e27126fb1b4e330e276d Mon Sep 17 00:00:00 2001 From: brycezhongqing Date: Tue, 15 Oct 2024 11:40:46 -0700 Subject: [PATCH] format --- .../com/linkedin/d2/balancer/servers/ZooKeeperAnnouncer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/d2/src/main/java/com/linkedin/d2/balancer/servers/ZooKeeperAnnouncer.java b/d2/src/main/java/com/linkedin/d2/balancer/servers/ZooKeeperAnnouncer.java index 4aa73a681..0a85e8547 100644 --- a/d2/src/main/java/com/linkedin/d2/balancer/servers/ZooKeeperAnnouncer.java +++ b/d2/src/main/java/com/linkedin/d2/balancer/servers/ZooKeeperAnnouncer.java @@ -176,7 +176,8 @@ public ZooKeeperAnnouncer(LoadBalancerServer server, boolean initialIsUp, _executorService = executorService; _eventEmitter = eventEmitter; - if(server instanceof ZooKeeperServer){ + if (server instanceof ZooKeeperServer) + { ((ZooKeeperServer) server).setServiceDiscoveryEventHelper(this); } }