mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
watch.go: docs on WatchResponse.Canceled
This commit is contained in:
parent
b73c1223d8
commit
5e017e94f9
@ -46,7 +46,9 @@ type WatchResponse struct {
|
|||||||
// CompactRevision is the minimum revision the watcher may receive.
|
// CompactRevision is the minimum revision the watcher may receive.
|
||||||
CompactRevision int64
|
CompactRevision int64
|
||||||
|
|
||||||
// Canceled is set to indicate the channel is about to close.
|
// Canceled is used to indicate watch failure.
|
||||||
|
// If the watch failed and the stream was about to close, before the channel is closed,
|
||||||
|
// the channel sends a final response that has Canceled set to true with a non-nil Err().
|
||||||
Canceled bool
|
Canceled bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user