bonifaido / rust-zookeeper

Pure Rust library for Apache ZooKeeper built on MIO
MIT License
204 stars 46 forks source link

Fix lock not setting handler on first node #77

Closed volfco closed 3 years ago

volfco commented 3 years ago

I noticed that the first node started never adds the event handler to the znode. So, if the znode is deleted the first lock holder will never see that event which could lead two 2 clients holding the lock- one holding it and another thinking it holds it.