diff options
author | James E. Blair <jeblair@redhat.com> | 2017-03-11 07:02:08 -0800 |
---|---|---|
committer | James E. Blair <jeblair@redhat.com> | 2017-03-11 07:02:08 -0800 |
commit | c7504a61c9806fb3002e3a9a4f6bc1818b0c2c63 (patch) | |
tree | 8cab176104e91d5bbd1331a12e05edd43193f7b0 /kazoo/recipe | |
parent | e9ed5c5ec81e04a635ed6009f51c1593a1882a7d (diff) | |
download | kazoo-c7504a61c9806fb3002e3a9a4f6bc1818b0c2c63.tar.gz |
Fix typo in ReadLock example
Diffstat (limited to 'kazoo/recipe')
-rw-r--r-- | kazoo/recipe/lock.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kazoo/recipe/lock.py b/kazoo/recipe/lock.py index 1fb2f9d..6183253 100644 --- a/kazoo/recipe/lock.py +++ b/kazoo/recipe/lock.py @@ -388,7 +388,7 @@ class ReadLock(Lock): zk = KazooClient() zk.start() - lock = zk.WriteLock("/lockpath", "my-identifier") + lock = zk.ReadLock("/lockpath", "my-identifier") with lock: # blocks waiting for outstanding writers # do something with the lock |