Commit 0d9a603c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 46beeb50
...@@ -210,8 +210,11 @@ type δwaiter struct { ...@@ -210,8 +210,11 @@ type δwaiter struct {
// The watcher stops when it sees either the storage being closed or an error. // The watcher stops when it sees either the storage being closed or an error.
// The DB is shutdown on exit. // The DB is shutdown on exit.
func (db *DB) watcher() (err error) { func (db *DB) watcher() (err error) {
defer db.shutdown(err) defer func() {
defer xerr.Contextf(&err, "db: watcher") //fmt.Printf("db: watcher: exit: %s\n", err)
xerr.Contextf(&err, "db: watcher")
db.shutdown(err)
}()
var event Event var event Event
var ok bool var ok bool
......
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