Skip to content

Commit

Permalink
fix: canceled should always be set totrue when cancel a watch request
Browse files Browse the repository at this point in the history
Signed-off-by: Nic <[email protected]>
  • Loading branch information
nic-6443 committed Dec 4, 2024
1 parent 59c88f9 commit 73df6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (w *watcher) Cancel(watchID, revision, compactRev int64, err error) {

serr := w.server.Send(&etcdserverpb.WatchResponse{
Header: txnHeader(revision),
Canceled: err != nil,
Canceled: true,
CancelReason: reason,
WatchId: watchID,
CompactRevision: compactRev,
Expand Down

0 comments on commit 73df6c7

Please sign in to comment.