Giter Club home page Giter Club logo

Comments (5)

jurmous avatar jurmous commented on September 28, 2024

I just tested the functionality in 0.3 and it all seems to work. What was wrong with your example is that it has a slash in front of the call. If you remove that slash it will work. I will reopen this issue to include a better warning.

from etcd4j.

jurmous avatar jurmous commented on September 28, 2024

It seems that etcd automatically redirects when you include an extra slash but there was an error in the redirect calling the same promise twice. That caused the "complete already" issue. It is still best to not include a slash in front of your key to spare you the double call. It is fixed now and I will release it in 0.4.4 later today.

from etcd4j.

jurmous avatar jurmous commented on September 28, 2024

And to get the value in a blocking way you need to call get() and not getNow(). getNow will get the value at the moment of calling it so it can be null since the server may not have responded yet. I cleared it up in the javadoc. To get it non-blocking you use addListener()

from etcd4j.

cresny avatar cresny commented on September 28, 2024

I thought I had tried without the leading slash, but yes, it does work now.
Thanks for the nice work here.

On Fri, Sep 26, 2014 at 5:34 AM, jurmous [email protected] wrote:

And to get the value in a non blocking way you need to call get() and not
getNow(). getNow will get the value at the moment of calling it so it can
be null since the server may not have responded yet. I cleared it up in the
javadoc. To get it non-blocking you use addListener()


Reply to this email directly or view it on GitHub
#1 (comment).

from etcd4j.

jurmous avatar jurmous commented on September 28, 2024

You're welcome! If you have any more problems or questions: please ask! :)

from etcd4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.