Skip to content

Commit f10a875

Browse files
committed
Fulfill the contract in k8s.io/apimachinery:watch/watch.go
1 parent 7adb56d commit f10a875

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/summary/client/simple.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ func (c *summaryResourceClient) Watch(ctx context.Context, opts metav1.ListOptio
107107

108108
go func() {
109109
defer close(eventChan)
110+
defer resp.Stop()
110111
for event := range resp.ResultChan() {
111112
// don't encode status objects
112113
if _, ok := event.Object.(*metav1.Status); !ok {

0 commit comments

Comments
 (0)