You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/02/26 00:56:37 UTC

[GitHub] [apisix] tokers commented on a change in pull request #3672: chore: capitalize the constant

tokers commented on a change in pull request #3672:
URL: https://github.com/apache/apisix/pull/3672#discussion_r583309777



##########
File path: apisix/upstream.lua
##########
@@ -191,7 +191,7 @@ function _M.set_by_route(route, api_ctx)
 
         local new_nodes, err = dis.nodes(up_conf.service_name)
         if not new_nodes then
-            return http_code_upstream_unavailable, "no valid upstream node: " .. (err or "nil")
+            return HTTP_CODE_UPSTREAM_UNAVAILABLE, "no valid upstream node: " .. (err or "nil")

Review comment:
       OK.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org