Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -1485,9 +1485,7 @@ func (conn *Connection) newWatcherImpl(key string, callback WatchCallback) (Watc
// request will not be finished by a small per-request
// timeout.
req := newWatchRequest(key).Context(context.Background())
if _, err = conn.Do(req).Get(); err != nil {
return
}
_, _ = conn.Do(req).Get()
}
}

Expand All @@ -1510,9 +1508,7 @@ func (conn *Connection) newWatcherImpl(key string, callback WatchCallback) (Watc
// not be finished by a small per-request timeout to
// avoid lost of the request.
req := newUnwatchRequest(key).Context(context.Background())
if _, err = conn.Do(req).Get(); err != nil {
return
}
_, err = conn.Do(req).Get()
}
conn.watchMap.Delete(key)
close(state.unready)
Expand Down
Loading