Skip to content

Commit

Permalink
feat:fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Stellar1999 committed Apr 9, 2024
1 parent cc89d88 commit 111a0b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public class ZookeeperMetadataReportFactory extends AbstractMetadataReportFactor
private ZookeeperClientManager zookeeperClientManager;

public ZookeeperMetadataReportFactory(ApplicationModel applicationModel) {
this.zookeeperClientManager = new ZookeeperClientManager();
this.zookeeperClientManager = ZookeeperClientManager.getInstance(applicationModel);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public class ZookeeperClientManager {
private static final Map<ApplicationModel, ZookeeperClientManager> managerMap = new ConcurrentHashMap<>();

/**
* should use getInstance for get Instance
* public just for used unit test
* Use getInstance instead of get Instance
* This method is made public solely for unit test purposes.
*/
public ZookeeperClientManager() {}

Expand Down

0 comments on commit 111a0b2

Please sign in to comment.