Skip to content

Commit

Permalink
remove cap and len checking
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonwang371 committed Nov 16, 2021
1 parent 23626d8 commit 9643999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/storage/mvcc/watchable_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (s *watchableStore) syncWatchers() int {
tx.RUnlock()
evs, err := s.kvsToEvents(wg, revs, vs)
if err != nil {
if s.errorc != nil && cap(s.errorc) > len(s.errorc) {
if s.errorc != nil {
s.lg.Fatal("kvsToEvents failed", zap.Error(err))
s.errorc <- err
return 0
Expand Down

0 comments on commit 9643999

Please sign in to comment.