maragkose / etcd3-client Goto Github PK
View Code? Open in Web Editor NEWThin cpp wrapper for etc v3 cpp api
License: MIT License
Thin cpp wrapper for etc v3 cpp api
License: MIT License
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.
hi, seems you use the sync method, is that a good choice? why not async?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.