Giter VIP home page Giter VIP logo

etcd3-client's People

Contributors

maragkose avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

etcd3-client's Issues

the watch can only catch once?

First of all, thank you for your work.
I make and run the test of watch, but watch can only work once by every key.
Here is the watch log:

# ./watcher 
Setup 1st watch
Ctor of AsyncWatcherCall [0x1747ac0]
Write ok and got_tag0x1:1
Adding callback to map with tag: 0x1747ac0
Setup 2nd watch
Ctor of AsyncWatcherCall [0x17428c0]
Write ok and got_tag0x1:1
Adding callback to map with tag: 0x17428c0
Request Read for tag: 0x17428c0
Request Read for tag: 0x1747ac0
Status for received tag [0x1747ac0]: 1
Key1 changed!
Status for received tag [0x17428c0]: 1
Key2 changed!
Status for received tag [0x1747ac0]:1
SomeKey:1
Status for received tag [0x17428c0]:1
OtherKey:4

And Here is the operation to change key:

# ETCDCTL_API=3 ./etcdctl put SomeKey 1
OK
# ETCDCTL_API=3 ./etcdctl put SomeKey 2
OK
# ETCDCTL_API=3 ./etcdctl put SomeKey 3
OK
# ETCDCTL_API=3 ./etcdctl put OtherKey 4
OK
# ETCDCTL_API=3 ./etcdctl put OtherKey 5
OK
# ETCDCTL_API=3 ./etcdctl put OtherKey 6
OK

So, the watch can only catch operation "put SomeKey 1" and "put OtherKey 4", and miss others, Or the watch can only catch the first operation of every key.

sync method

hi, seems you use the sync method, is that a good choice? why not async?

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.