Repository: curator Updated Branches: refs/heads/master 7fc3e6507 -> dad2888c7
If a service is updated, update the services map. Closes #43 Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/dad2888c Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/dad2888c Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/dad2888c Branch: refs/heads/master Commit: dad2888c7f8ffc2203f21f54cc27c93e7576c5e1 Parents: 7fc3e65 Author: randgalt <randg...@apache.org> Authored: Mon Jan 12 16:11:55 2015 -0500 Committer: randgalt <randg...@apache.org> Committed: Mon Jan 12 16:11:55 2015 -0500 ---------------------------------------------------------------------- .../apache/curator/x/discovery/details/ServiceDiscoveryImpl.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/dad2888c/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java ---------------------------------------------------------------------- diff --git a/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java b/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java index 6472262..41c5d77 100644 --- a/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java +++ b/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java @@ -192,6 +192,7 @@ public class ServiceDiscoveryImpl<T> implements ServiceDiscovery<T> byte[] bytes = serializer.serialize(service); String path = pathForInstance(service.getName(), service.getId()); client.setData().forPath(path, bytes); + services.put(service.getId(), service); } @VisibleForTesting