Commit a4913046 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

Update DeleteListenerWaf method to use listenerName variable for improved...

Update DeleteListenerWaf method to use listenerName variable for improved clarity in history logging. This change enhances code readability while maintaining existing functionality.
parent dc8c0318
......@@ -306,7 +306,7 @@ func (s *wafService) DeleteListenerWaf(ctx context.Context, req *DeleteListenerR
name := fmt.Sprintf("%s-%d", req.GatewayName, req.Port)
defer func() {
_ = s.addListenerHistory(ctx, name, req.ListenerName, req.GatewayName, req.Namespace, req.RegionCode, errMsg, status, model.OperationDelete)
_ = s.addListenerHistory(ctx, name, listenerName, req.GatewayName, req.Namespace, req.RegionCode, errMsg, status, model.OperationDelete)
}()
client := s.clusterClientManager.GetClient(req.RegionCode)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment