File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ type ClientState interface {
48
48
GetKnownResources () map [string ]string
49
49
50
50
// GetSubscribedResources returns the list of resources currently subscribed to by the client for the type.
51
- // For delta it keeps track across requests
52
- // For sotw it is a normalized view of the request resources
51
+ // For delta it keeps track of subscription updates across requests
52
+ // For sotw it is a normalized view of the last request resources
53
53
GetSubscribedResources () map [string ]struct {}
54
54
55
55
// IsWildcard returns whether the client has a wildcard watch.
Original file line number Diff line number Diff line change @@ -101,10 +101,10 @@ type DeltaResponseWatch struct {
101
101
clientState ClientState
102
102
}
103
103
104
- // WatchesResources returns whether at least one of the resource provided is currently watch by the stream
105
- // It is currently only applicable to delta-xds
106
- // If the request is wildcard, it will always return true
107
- // Otherwise it will compare the provided resources to the list of resources currently subscribed
104
+ // WatchesResources returns whether at least one of the resources provided is currently being watched by the stream.
105
+ // It is currently only applicable to delta-xds.
106
+ // If the request is wildcard, it will always return true,
107
+ // otherwise it will compare the provided resources to the list of resources currently subscribed
108
108
func (w * DeltaResponseWatch ) WatchesResources (resourceNames map [string ]struct {}) bool {
109
109
if w .clientState .IsWildcard () {
110
110
return true
You can’t perform that action at this time.
0 commit comments