Commit 4b06a39e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent fbbc56ce
...@@ -268,7 +268,7 @@ func (s *storage) watcher() { ...@@ -268,7 +268,7 @@ func (s *storage) watcher() {
// if !↑ - stop the storage with error. // if !↑ - stop the storage with error.
if !(e.Tid > s.drvHead) { if !(e.Tid > s.drvHead) {
errDown = fmt.Errorf( errDown = fmt.Errorf(
"%s: driver notified with δ.tid not ↑ (%s -> %s)", "%s: driver error: notified with δ.tid not ↑ (%s -> %s)",
s.URL(), s.drvHead, e.Tid) s.URL(), s.drvHead, e.Tid)
event = &EventError{errDown} event = &EventError{errDown}
} else { } else {
......
...@@ -467,12 +467,12 @@ type Watcher interface { ...@@ -467,12 +467,12 @@ type Watcher interface {
// sent, where at₀ is database head that was current when AddWatch call // sent, where at₀ is database head that was current when AddWatch call
// was made. // was made.
// //
// Once registered, watchq must be read until DelWatch call. // Once registered, watchq must be read untill it is closed or until
// Not doing so will stuck whole storage. // DelWatch call. Not doing so will stuck whole storage.
// //
// Registered watchq are closed when the database storage is closed. // Registered watchq are closed when the database storage is closed.
// //
// Multiple AddWatch calls with the same watchq register watchq only once. XXX // Multiple AddWatch calls with the same watchq register watchq only once.
AddWatch(watchq chan<- Event) (at0 Tid) AddWatch(watchq chan<- Event) (at0 Tid)
// DelWatch unregisters watchq from being notified of database changes. // DelWatch unregisters watchq from being notified of database changes.
...@@ -495,8 +495,6 @@ type Watcher interface { ...@@ -495,8 +495,6 @@ type Watcher interface {
// } // }
// //
// DelWatch is noop if watchq was not registered. // DelWatch is noop if watchq was not registered.
//
// XXX also return curent head?
DelWatch(watchq chan<- Event) DelWatch(watchq chan<- Event)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment