fix: websocket event listener (#2745)

Co-authored-by: 李霖 <lee@lilindeMacBook-Pro.local>
This commit is contained in:
李霖
2023-03-23 11:52:20 +05:30
committed by GitHub
co-authored by 李霖
parent 963081e096
commit a8e8cfb72d
+1 -1
View File
@@ -711,7 +711,7 @@ func (gpm *GenericPoolManager) NoActiveConnectionEventChecker(ctx context.Contex
defer close(stopper)
var wg wait.Group
for _, informer := range utils.GetInformerEventChecker(ctx, kubeClient, "WsConnectionStarted") {
for _, informer := range utils.GetInformerEventChecker(ctx, kubeClient, "NoActiveConnections") {
informer.AddEventHandler(k8sCache.ResourceEventHandlerFuncs{
AddFunc: func(obj interface{}) {
mObj := obj.(metav1.Object)