diff --git a/libs/libzkutil/include/zkutil/ZooKeeper.h b/libs/libzkutil/include/zkutil/ZooKeeper.h index 764260a2611..042d6b1831d 100644 --- a/libs/libzkutil/include/zkutil/ZooKeeper.h +++ b/libs/libzkutil/include/zkutil/ZooKeeper.h @@ -33,7 +33,7 @@ public: 30000 */ - ZooKeeper(const Poco::Util::LayeredConfiguration & config, const std::string & config_name, + ZooKeeper(const Poco::Util::AbstractConfiguration & config, const std::string & config_name, WatchFunction * watch = nullptr); ~ZooKeeper(); diff --git a/libs/libzkutil/src/ZooKeeper.cpp b/libs/libzkutil/src/ZooKeeper.cpp index 1bbcf0526dd..c1b5ad91b8a 100644 --- a/libs/libzkutil/src/ZooKeeper.cpp +++ b/libs/libzkutil/src/ZooKeeper.cpp @@ -75,7 +75,7 @@ ZooKeeper::ZooKeeper(const std::string & hosts, int32_t sessionTimeoutMs, WatchF struct ZooKeeperArgs { - ZooKeeperArgs(const Poco::Util::LayeredConfiguration & config, const std::string & config_name) + ZooKeeperArgs(const Poco::Util::AbstractConfiguration & config, const std::string & config_name) { Poco::Util::AbstractConfiguration::Keys keys; config.keys(config_name, keys); @@ -102,7 +102,7 @@ struct ZooKeeperArgs size_t session_timeout_ms; }; -ZooKeeper::ZooKeeper(const Poco::Util::LayeredConfiguration & config, const std::string & config_name, +ZooKeeper::ZooKeeper(const Poco::Util::AbstractConfiguration & config, const std::string & config_name, WatchFunction * watch) { ZooKeeperArgs args(config, config_name);