From ea11881e196839079f85731edcae135961ab1abe Mon Sep 17 00:00:00 2001 From: Andrus Adamchik Date: Sat, 25 Nov 2023 13:06:46 -0500 Subject: [PATCH] refactoring - combining Module and Provider for non-deprecated modules --- src/main/java/io/bootique/curator/CuratorModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/bootique/curator/CuratorModule.java b/src/main/java/io/bootique/curator/CuratorModule.java index 4501fd1..a3d6a0c 100644 --- a/src/main/java/io/bootique/curator/CuratorModule.java +++ b/src/main/java/io/bootique/curator/CuratorModule.java @@ -37,7 +37,7 @@ public class CuratorModule implements BQModule, BQModuleProvider { @Override public BuiltModule buildModule() { - return BuiltModule.of(new CuratorModule()) + return BuiltModule.of(this) .provider(this) .description("Integrates Apache Curator Zookeeper client") .config(CONFIG_PREFIX, CuratorFrameworkFactory.class)