|
|
@@ -97,9 +97,8 @@ type WatchableKV interface {
|
|
|
// event history can be watched unless compacted.
|
|
|
// If `prefix` is true, watch observes all events whose key prefix could be the given `key`.
|
|
|
// If `startRev` <=0, watch observes events after currentRev.
|
|
|
- // If `endRev` <=0, watch observes events until watch is cancelled.
|
|
|
//
|
|
|
// Canceling the watcher releases resources associated with it, so code
|
|
|
// should always call cancel as soon as watch is done.
|
|
|
- Watcher(key []byte, prefix bool, startRev, endRev int64) (Watcher, CancelFunc)
|
|
|
+ Watcher(key []byte, prefix bool, startRev int64) (Watcher, CancelFunc)
|
|
|
}
|