瀏覽代碼

Minor fix of store comment

Signed-off-by: Chun Chen <ramichen@tencent.com>
Chun Chen 10 年之前
父節點
當前提交
f26e4f4c52
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      libnetwork/internal/kvstore/kvstore.go

+ 2 - 2
libnetwork/internal/kvstore/kvstore.go

@@ -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)