Merge pull request #40 from chenchun/fix_zk_list
Fix zookeeper List function not exist key error
This commit is contained in:
commit
c01507da42
1 changed files with 2 additions and 2 deletions
|
@ -63,10 +63,10 @@ type Store interface {
|
|||
Watch(key string, stopCh <-chan struct{}) (<-chan *KVPair, error)
|
||||
|
||||
// WatchTree watches for changes on child nodes under
|
||||
// a given a directory
|
||||
// a given directory
|
||||
WatchTree(directory string, stopCh <-chan struct{}) (<-chan []*KVPair, error)
|
||||
|
||||
// CreateLock for a given key.
|
||||
// NewLock creates a lock for a given key.
|
||||
// The returned Locker is not held and must be acquired
|
||||
// with `.Lock`. The Value is optional.
|
||||
NewLock(key string, options *LockOptions) (Locker, error)
|
||||
|
|
Loading…
Add table
Reference in a new issue