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

dmwangnima pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git


The following commit(s) were added to refs/heads/main by this push:
     new 73a81bf6 fix(docs): error docs (#728)
73a81bf6 is described below

commit 73a81bf66c9f5d678a0a615b43cf0b61abcbc769
Author: KamTo Hung <kamtoh...@gmail.com>
AuthorDate: Sat Mar 16 22:53:06 2024 +0800

    fix(docs): error docs (#728)
---
 compatibility/context/dubbo/go-client/cmd/client.go         | 2 +-
 compatibility/context/dubbo/go-server/cmd/server.go         | 1 +
 compatibility/direct/README.md                              | 4 ++--
 compatibility/direct/README_zh.md                           | 4 ++--
 compatibility/error/triple/hessian2/go-client/cmd/client.go | 2 +-
 compatibility/rpc/grpc/go-client/cmd/client.go              | 2 +-
 compatibility/rpc/triple/hessian2/go-client/cmd/client.go   | 2 +-
 compatibility/rpc/triple/msgpack/go-client/cmd/client.go    | 2 +-
 compatibility/tls/grpc/go-client/cmd/client.go              | 2 +-
 9 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/compatibility/context/dubbo/go-client/cmd/client.go 
b/compatibility/context/dubbo/go-client/cmd/client.go
index 8e30bd0d..89f554bd 100644
--- a/compatibility/context/dubbo/go-client/cmd/client.go
+++ b/compatibility/context/dubbo/go-client/cmd/client.go
@@ -51,7 +51,7 @@ func (c *ContextContent) JavaClassName() string {
        return "org.apache.dubbo.ContextContent"
 }
 
-// need to setup environment variable "CONF_CONSUMER_FILE_PATH" to 
"conf/client.yml" before run
+// need to setup environment variable "DUBBO_GO_CONFIG_PATH" to 
"conf/dubbogo.yml" before run
 func main() {
        var userProvider = &UserProvider{}
        config.SetConsumerService(userProvider)
diff --git a/compatibility/context/dubbo/go-server/cmd/server.go 
b/compatibility/context/dubbo/go-server/cmd/server.go
index 41a091ef..6c2bc8b4 100644
--- a/compatibility/context/dubbo/go-server/cmd/server.go
+++ b/compatibility/context/dubbo/go-server/cmd/server.go
@@ -83,6 +83,7 @@ func (u *ContextContent) JavaClassName() string {
        return "org.apache.dubbo.ContextContent"
 }
 
+// need to setup environment variable "DUBBO_GO_CONFIG_PATH" to 
"conf/dubbogo.yml" before run
 func main() {
        if err := config.Load(); err != nil {
                panic(err)
diff --git a/compatibility/direct/README.md b/compatibility/direct/README.md
index 6a8aa632..da91da94 100644
--- a/compatibility/direct/README.md
+++ b/compatibility/direct/README.md
@@ -91,7 +91,7 @@ initSignal()
 #### Consumer
 
 1. Set up the `dubbo service` you need to subscribe to at the beginning of the 
program startup.
-   Make sure that the configuration file 
[client.yml](go-client/conf/client.yml) has been configured with the relevant 
information of the subscription service, and the service properties can be 
customized to override the configuration of the Provider's properties.
+   Make sure that the configuration file 
[dubbogo.yml](go-client/conf/dubbogo.yml) has been configured with the relevant 
information of the subscription service, and the service properties can be 
customized to override the configuration of the Provider's properties.
    Retain minimum configuration `application` and `references` verification 
point-to-point direct connection effect, no need to configure the registry.
 
 ```go
@@ -152,7 +152,7 @@ CONF_PROVIDER_FILE_PATH=direct/go-server/conf/server.yml
 
 ```shell
 APP_LOG_CONF_FILE=direct/go-client/conf/log.yml;
-CONF_CONSUMER_FILE_PATH=direct/go-client/conf/client.yml
+DUBBO_GO_CONFIG_PATH=direct/go-client/conf/dubbogo.yml
 ```
 
 See 
[dubbo-go/.../env.go](https://dubbo.apache.org/dubbo-go/v3/blob/master/common/constant/env.go)
diff --git a/compatibility/direct/README_zh.md 
b/compatibility/direct/README_zh.md
index 9baf2043..e3c41fc8 100644
--- a/compatibility/direct/README_zh.md
+++ b/compatibility/direct/README_zh.md
@@ -94,7 +94,7 @@ initSignal()
 #### 服务消费者
 
 1. 在程序启动之初设置需要订阅的 `dubbo` 服务,
-   确保配置文件 `client.yml` 已配置订阅服务相关信息,可自定义设置服务属性等,覆盖 Provider 的属性配置,详情参阅 
[client.yml](go-client/conf/client.yml),
+   确保配置文件 `dubbogo.yml` 已配置订阅服务相关信息,可自定义设置服务属性等,覆盖 Provider 的属性配置,详情参阅 
[dubbogo.yml](go-client/conf/dubbogo.yml),
    保留最少配置 `application` 和 `references` 验证点对点直连效果,无需注册中心等配置
 
 ```go
@@ -153,7 +153,7 @@ CONF_PROVIDER_FILE_PATH=direct/go-server/conf/server.yml
 
 ```shell
 APP_LOG_CONF_FILE=direct/go-client/conf/log.yml;
-CONF_CONSUMER_FILE_PATH=direct/go-client/conf/client.yml
+DUBBO_GO_CONFIG_PATH=direct/go-client/conf/dubbogo.yml
 ```
 
 详情请参阅 
[dubbo-go/.../env.go](https://dubbo.apache.org/dubbo-go/v3/blob/master/common/constant/env.go)
diff --git a/compatibility/error/triple/hessian2/go-client/cmd/client.go 
b/compatibility/error/triple/hessian2/go-client/cmd/client.go
index 03af75b4..9c2a9495 100644
--- a/compatibility/error/triple/hessian2/go-client/cmd/client.go
+++ b/compatibility/error/triple/hessian2/go-client/cmd/client.go
@@ -39,7 +39,7 @@ func init() {
        hessian.RegisterPOJO(&User{})
 }
 
-// need to setup environment variable "CONF_CONSUMER_FILE_PATH" to 
"conf/client.yml" before run
+// need to setup environment variable "DUBBO_GO_CONFIG_PATH" to 
"conf/dubbogo.yml" before run
 func main() {
        if err := config.Load(); err != nil {
                panic(err)
diff --git a/compatibility/rpc/grpc/go-client/cmd/client.go 
b/compatibility/rpc/grpc/go-client/cmd/client.go
index f6dd14be..9fdac61c 100644
--- a/compatibility/rpc/grpc/go-client/cmd/client.go
+++ b/compatibility/rpc/grpc/go-client/cmd/client.go
@@ -38,7 +38,7 @@ func init() {
        config.SetConsumerService(grpcGreeterImpl)
 }
 
-// need to setup environment variable "CONF_CONSUMER_FILE_PATH" to 
"conf/client.yml" before run
+// need to setup environment variable "DUBBO_GO_CONFIG_PATH" to 
"conf/dubbogo.yml" before run
 func main() {
        if err := config.Load(); err != nil {
                panic(err)
diff --git a/compatibility/rpc/triple/hessian2/go-client/cmd/client.go 
b/compatibility/rpc/triple/hessian2/go-client/cmd/client.go
index 98054126..a0c06b39 100644
--- a/compatibility/rpc/triple/hessian2/go-client/cmd/client.go
+++ b/compatibility/rpc/triple/hessian2/go-client/cmd/client.go
@@ -42,7 +42,7 @@ func init() {
        hessian.RegisterPOJO(&ComplexData{})
 }
 
-// need to setup environment variable "CONF_CONSUMER_FILE_PATH" to 
"conf/client.yml" before run
+// need to setup environment variable "DUBBO_GO_CONFIG_PATH" to 
"conf/dubbogo.yml" before run
 func main() {
        if err := config.Load(); err != nil {
                panic(err)
diff --git a/compatibility/rpc/triple/msgpack/go-client/cmd/client.go 
b/compatibility/rpc/triple/msgpack/go-client/cmd/client.go
index c2eb2bd6..b323ed87 100644
--- a/compatibility/rpc/triple/msgpack/go-client/cmd/client.go
+++ b/compatibility/rpc/triple/msgpack/go-client/cmd/client.go
@@ -43,7 +43,7 @@ func init() {
        config.SetConsumerService(userProvider)
 }
 
-// need to setup environment variable "CONF_CONSUMER_FILE_PATH" to 
"conf/client.yml" before run
+// need to setup environment variable "DUBBO_GO_CONFIG_PATH" to 
"conf/dubbogo.yml" before run
 func main() {
        if err := config.Load(); err != nil {
                panic(err)
diff --git a/compatibility/tls/grpc/go-client/cmd/client.go 
b/compatibility/tls/grpc/go-client/cmd/client.go
index e2bee8a4..f4931392 100644
--- a/compatibility/tls/grpc/go-client/cmd/client.go
+++ b/compatibility/tls/grpc/go-client/cmd/client.go
@@ -38,7 +38,7 @@ func init() {
        config.SetConsumerService(grpcGreeterImpl)
 }
 
-// need to setup environment variable "CONF_CONSUMER_FILE_PATH" to 
"conf/client.yml" before run
+// need to setup environment variable "DUBBO_GO_CONFIG_PATH" to 
"conf/dubbogo.yml" before run
 func main() {
        if err := config.Load(); err != nil {
                panic(err)

Reply via email to