Skip to content

Commit

Permalink
Minor changes in getting controller information
Browse files Browse the repository at this point in the history
  • Loading branch information
Ledostuff committed Nov 19, 2018
1 parent 1e5f2d6 commit 927d03e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/
public class ClusterInformationObserver {

private ZkUtils zkUtils;
private final ZkUtils zkUtils;

public ClusterInformationObserver(ZkUtils zkUtils) {
this.zkUtils = zkUtils;
Expand All @@ -52,7 +52,7 @@ public BrokerEntity getCurrentClusterController() {
}
return new BrokerEntity(brokerInfo.id(), result);
} else {
return null;
return BrokerEntity.empty();
}
}

Expand Down

0 comments on commit 927d03e

Please sign in to comment.