Skip to content

Commit 10b610c

Browse files
menghanldfawley
authored andcommitted
xdsclient/csds: fix leaked metadata (#5339)
1 parent 1303098 commit 10b610c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xds/internal/xdsclient/pubsub/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func (pb *Pubsub) NewClusters(updates map[string]xdsresource.ClusterUpdateErrTup
232232
// from cache, and also send an resource not found error to indicate
233233
// resource removed.
234234
delete(pb.cdsCache, name)
235-
pb.ldsMD[name] = xdsresource.UpdateMetadata{Status: xdsresource.ServiceStatusNotExist}
235+
pb.cdsMD[name] = xdsresource.UpdateMetadata{Status: xdsresource.ServiceStatusNotExist}
236236
for wi := range pb.cdsWatchers[name] {
237237
wi.resourceNotFound()
238238
}

0 commit comments

Comments
 (0)