From 685aa558c57dd7834014897c4bb4a225b96623f7 Mon Sep 17 00:00:00 2001 From: Andrus Adamchik Date: Sat, 9 Dec 2023 11:29:41 -0500 Subject: [PATCH] naming cleanup --- src/main/java/io/bootique/curator/CuratorFrameworkFactory.java | 2 +- src/main/java/io/bootique/curator/CuratorModule.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/bootique/curator/CuratorFrameworkFactory.java b/src/main/java/io/bootique/curator/CuratorFrameworkFactory.java index b1dee6b..d435916 100644 --- a/src/main/java/io/bootique/curator/CuratorFrameworkFactory.java +++ b/src/main/java/io/bootique/curator/CuratorFrameworkFactory.java @@ -34,7 +34,7 @@ public class CuratorFrameworkFactory { private String connectString; - public CuratorFramework createZkClient() { + public CuratorFramework create() { LOGGER.info("Starting CuratorFramework, connecting to Zookeeper: " + connectString); diff --git a/src/main/java/io/bootique/curator/CuratorModule.java b/src/main/java/io/bootique/curator/CuratorModule.java index 2747f67..69ff692 100644 --- a/src/main/java/io/bootique/curator/CuratorModule.java +++ b/src/main/java/io/bootique/curator/CuratorModule.java @@ -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); }