Skip to content

Commit

Permalink
Fixed unexpected cancel watch which WatchID equal to 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
kafuu-chino committed Aug 2, 2022
1 parent 4f0e92d commit 680314f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/storage/mvcc/watchable_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func (s *watchableStore) NewWatchStream() WatchStream {
return &watchStream{
watchable: s,
ch: make(chan WatchResponse, chanBufLen),
nextID: 1,
cancels: make(map[WatchID]cancelFunc),
watchers: make(map[WatchID]*watcher),
}
Expand Down

0 comments on commit 680314f

Please sign in to comment.