Skip to content

Commit feb9f75

Browse files
authored
Merge pull request #86 from waltforme/memleak
🌱 Let startInformers go
2 parents 5693393 + a13f8a5 commit feb9f75

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/agent/informers.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,9 @@ func (a *Agent) startInformers(gvrs []*schema.GroupVersionResource, uids []strin
5252
if count == 1 {
5353
a.logger.Info("starting informer", "key", key)
5454
stopper := make(chan struct{})
55-
defer close(stopper)
5655
a.startInformer(*gvr, gvk, stopper, true)
5756
}
58-
5957
}
60-
// block to avoid closing channel
61-
select {}
6258
}
6359

6460
func (a *Agent) startInformer(gvr schema.GroupVersionResource, gvk schema.GroupVersionKind, stopper chan struct{}, restartable bool) {

0 commit comments

Comments
 (0)