This is an automated email from the ASF dual-hosted git repository.

ashishtiwari pushed a commit to branch Revolyssup-patch-1
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git

commit 34ed6a4f134571a2b2bb4887015be4ee50bcdce0
Author: Ashish Tiwari <ashishjaitiwari15112...@gmail.com>
AuthorDate: Mon Aug 25 09:57:18 2025 +0530

    chore: remove redundant backend traffic policy attachment
    
    Removed unnecessary call to attachBackendTrafficPolicyToUpstream with nil.
---
 internal/adc/translator/httproute.go | 1 -
 1 file changed, 1 deletion(-)

diff --git a/internal/adc/translator/httproute.go 
b/internal/adc/translator/httproute.go
index 8506bc8d..10bcd951 100644
--- a/internal/adc/translator/httproute.go
+++ b/internal/adc/translator/httproute.go
@@ -481,7 +481,6 @@ func (t *Translator) TranslateHTTPRoute(tctx 
*provider.TranslateContext, httpRou
                        
t.AttachBackendTrafficPolicyToUpstream(backend.BackendRef, 
tctx.BackendTrafficPolicies, upstream)
                        upstream.Nodes = append(upstream.Nodes, upNodes...)
                }
-               t.attachBackendTrafficPolicyToUpstream(nil, upstream)
 
                // todo: support multiple backends
                service := adctypes.NewDefaultService()

Reply via email to