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

impactcn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shenyu-nginx.git


The following commit(s) were added to refs/heads/main by this push:
     new e4b205b  Release fix2 (#25)
e4b205b is described below

commit e4b205bb759c462a9d490308b80595cc08723625
Author: Sixh-PrFor <[email protected]>
AuthorDate: Sat Oct 29 20:29:09 2022 +0800

    Release fix2 (#25)
    
    * 1. commit zookeeper connection
    
    * Increase the processing of heartbeats
    
    * 1. Send a request to subscribe
    
    * 1. zookeeper watch event...
    
    * 1. zookeeper watch event...
    
    * 1. update zookeeper proto.
    
    * 1. update zookeeper proto.
    
    * update zookeeper proto.
    
    * update zookeeper proto.
    
    * Modify Chinese
    
    * Modify Chinese
    
    * Modify Chinese
    
    * update sessionId lower.
    
    * modify doc
    
    * modify doc
---
 README.md                 | 4 ++--
 RELEASE-NOTES.md          | 1 +
 example/eureka/nginx.conf | 8 ++++----
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index ef96a97..fab3199 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-Apache ShenYu Nginx Module(Experimental)
+Apache ShenYu Nginx Module
 ---
 
 This module provided SDK to watch available ShenYu instance list as upstream 
nodes by Service Register Center for OpenResty.
@@ -140,7 +140,7 @@ Listen for changes to the node via the consul watch event. 
Here is an example of
 init_worker_by_lua_block {
     local register = require "shenyu.register.consul";
     register.init({
-        uri = "http://192.168.152.128:8500";,
+        uri = "http://127.0.0.1:8500";,
         path = "/v1/catalog/service/demo",
         shenyu_storage = ngx.shared.shenyu_storage,
         balancer_type = "chash",
diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md
index 2812449..07b1bfd 100644
--- a/RELEASE-NOTES.md
+++ b/RELEASE-NOTES.md
@@ -5,5 +5,6 @@
 * Support for listening to Apache ShenYu node changes using Zookeeper
 * Support for listening to Apache ShenYu node changes using ETCD.
 * Support for listening to Apache ShenYu node changes using Nacos
+* Support for listening to Apache ShenYu node changes using Consul
 * Add demo code to add the above.
 * Add a description of the documentation for the above.
\ No newline at end of file
diff --git a/example/eureka/nginx.conf b/example/eureka/nginx.conf
index 19c447c..52fad20 100644
--- a/example/eureka/nginx.conf
+++ b/example/eureka/nginx.conf
@@ -20,7 +20,7 @@ lua_package_cpath "/usr/local/openresty/lualib/?.so;;";
 
 lua_shared_dict upstream_list 10m;
 
-# 第一次初始化
+# Initialize for the first time
 init_by_lua_block {
     local eureka = require "eureka";
     eureka.init({
@@ -31,13 +31,13 @@ init_by_lua_block {
     });
 }
 
-# 定时拉取配置
+# Periodic pull configuration
 init_worker_by_lua_block {
     local eureka = require "eureka";
     local handle = nil;
 
     handle = function ()
-        --TODO:控制每次只有一个worker执行
+#         Only one worker executes the control at a time
         eureka.get_server_list();
         ngx.timer.at(5, handle);
     end
@@ -45,7 +45,7 @@ init_worker_by_lua_block {
 }
 
 upstream api_server {
-    server 0.0.0.1 down; #占位server
+    server 0.0.0.1 down; #Placeholder server
 
     balancer_by_lua_block {
         local balancer = require "ngx.balancer";

Reply via email to