nic-6443 commented on code in PR #12426:
URL: https://github.com/apache/apisix/pull/12426#discussion_r2218093621


##########
apisix/upstream.lua:
##########
@@ -569,9 +448,9 @@ local function filter_upstream(value, parent)
     if not value then
         return
     end
-
-    value.parent = parent
-
+    value.resource_key = ((parent and parent.key) or value.key)

Review Comment:
   Try to keep the code consistent and reduce writing separate code for 
different cases.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to