Skip to content

Commit

Permalink
Let startInformers go
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Duan <[email protected]>
  • Loading branch information
waltforme committed Oct 17, 2024
1 parent 5693393 commit a13f8a5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/agent/informers.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,9 @@ func (a *Agent) startInformers(gvrs []*schema.GroupVersionResource, uids []strin
if count == 1 {
a.logger.Info("starting informer", "key", key)
stopper := make(chan struct{})
defer close(stopper)
a.startInformer(*gvr, gvk, stopper, true)
}

}
// block to avoid closing channel
select {}
}

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

0 comments on commit a13f8a5

Please sign in to comment.