From aab04833891ff90c24a7c8ef31cc543c753eb07f Mon Sep 17 00:00:00 2001 From: Elad Chen Date: Tue, 25 Dec 2018 18:26:42 +0200 Subject: [PATCH] Align dynamic config example with the actual API The example shows how to register a dynamic config, yet the example differs from the actual API. The config name should be provided to "addConfig", not to PollingDynamicConfig instantiation. --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 7c2e0e47e..fe4699011 100644 --- a/README.md +++ b/README.md @@ -66,8 +66,7 @@ directly for fine grained configuration sources, such as ZooKeeper, which suppor at the individual property granularity. ```java -config.addConfig(new PollingDynamicConfg( - "REMOTE", +config.addConfig("REMOTE", new PollingDynamicConfg( new URLConfigReader("http://remoteconfigservice/snapshot"), new FixedPollingStrategy(30, TimeUnit.SECONDS)) ```