Skip to content

Commit

Permalink
Merge pull request #18580 from myrat92/fix-issue-184113
Browse files Browse the repository at this point in the history
docs: fix description of WatchResponse.canceled
  • Loading branch information
ahrtr committed Sep 24, 2024
2 parents c79c7d5 + 4155d8b commit 6619b9f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Documentation/dev-guide/apispec/swagger/rpc.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2982,7 +2982,7 @@
},
"canceled": {
"type": "boolean",
"description": "canceled is set to true if the response is for a cancel watch request.\nNo further events will be sent to the canceled watcher."
"description": "canceled is set to true if the response is for a cancel watch request\nor if the start_revision has already been compacted.\nNo further events will be sent to the canceled watcher."
},
"compact_revision": {
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion api/etcdserverpb/rpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion api/etcdserverpb/rpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,8 @@ message WatchResponse {
// All events sent to the created watcher will attach with the same watch_id.
bool created = 3;

// canceled is set to true if the response is for a cancel watch request.
// canceled is set to true if the response is for a cancel watch request
// or if the start_revision has already been compacted.
// No further events will be sent to the canceled watcher.
bool canceled = 4;

Expand Down

0 comments on commit 6619b9f

Please sign in to comment.