jurmous / etcd4j

Java / Netty client for etcd, the highly-available key value store for shared configuration and service discovery.
Apache License 2.0
267 stars 83 forks source link

Add support for etcd 2.1.x (version is now represented as json) #49

Closed lburgazzoli closed 9 years ago

jurmous commented 9 years ago

Thanks for the pull request!

jurmous commented 9 years ago

I changed the code a bit to retain backward compatibility with older etcd versions. I moved your code to a new version() method and returned the old getVersion() method to the previous String returnal. This way people can create better migration paths to the new etcd 2.1 without making it mandatory to change the library and etcd version at the same time.

See: eac8ed653489738c75d69bf54b5630a0cfa16e0d