瀏覽代碼

Merge pull request #30 from ahmetalpbalkan/rm-WatchCallback

Remove unused type WatchCallback
Alexandre Beslic 10 年之前
父節點
當前提交
ebeec0dd96
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      libnetwork/internal/kvstore/kvstore.go

+ 0 - 4
libnetwork/internal/kvstore/kvstore.go

@@ -107,10 +107,6 @@ type LockOptions struct {
 	TTL   time.Duration // Optional, expiration ttl associated with the lock
 	TTL   time.Duration // Optional, expiration ttl associated with the lock
 }
 }
 
 
-// WatchCallback is used for watch methods on keys
-// and is triggered on key change
-type WatchCallback func(entries ...*KVPair)
-
 // Locker provides locking mechanism on top of the store.
 // Locker provides locking mechanism on top of the store.
 // Similar to `sync.Lock` except it may return errors.
 // Similar to `sync.Lock` except it may return errors.
 type Locker interface {
 type Locker interface {