mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
parent
ebcfdd1a3d
commit
6fb08672d8
@ -321,11 +321,13 @@ func (sws *serverWatchStream) sendLoop() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
canceled := wresp.CompactRevision != 0
|
||||||
wr := &pb.WatchResponse{
|
wr := &pb.WatchResponse{
|
||||||
Header: sws.newResponseHeader(wresp.Revision),
|
Header: sws.newResponseHeader(wresp.Revision),
|
||||||
WatchId: int64(wresp.WatchID),
|
WatchId: int64(wresp.WatchID),
|
||||||
Events: events,
|
Events: events,
|
||||||
CompactRevision: wresp.CompactRevision,
|
CompactRevision: wresp.CompactRevision,
|
||||||
|
Canceled: canceled,
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, hasId := ids[wresp.WatchID]; !hasId {
|
if _, hasId := ids[wresp.WatchID]; !hasId {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user