Skip to content

Commit

Permalink
naming cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andrus committed Dec 9, 2023
1 parent d33650d commit 685aa55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class CuratorFrameworkFactory {

private String connectString;

public CuratorFramework createZkClient() {
public CuratorFramework create() {

LOGGER.info("Starting CuratorFramework, connecting to Zookeeper: " + connectString);

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/bootique/curator/CuratorModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void configure(Binder binder) {
@Provides
@Singleton
public CuratorFramework createCurator(ConfigurationFactory configFactory, ShutdownManager shutdownManager) {
CuratorFramework client = configFactory.config(CuratorFrameworkFactory.class, CONFIG_PREFIX).createZkClient();
CuratorFramework client = configFactory.config(CuratorFrameworkFactory.class, CONFIG_PREFIX).create();
client.start();
return shutdownManager.onShutdown(client);
}
Expand Down

0 comments on commit 685aa55

Please sign in to comment.