diff --git a/README.md b/README.md index b2c3b86b..0c6b2c6a 100644 --- a/README.md +++ b/README.md @@ -143,13 +143,13 @@ Go-doudou a RESTFul microservice framework(we will add grpc support soon) comes ### Install ```shell -go get -v github.com/unionj-cloud/go-doudou@v0.9.4 +go get -v github.com/unionj-cloud/go-doudou@v0.9.5 ``` If you meet 410 Gone error, try below command: ```shell -export GOSUMDB=off && go get -v github.com/unionj-cloud/go-doudou@v0.9.4 +export GOSUMDB=off && go get -v github.com/unionj-cloud/go-doudou@v0.9.5 ``` ### Usage diff --git a/README_zh.md b/README_zh.md index 754046ae..8d4493d8 100644 --- a/README_zh.md +++ b/README_zh.md @@ -98,13 +98,13 @@ go-doudou(兜兜)是一个基于gossip协议和OpenAPI3.0规范的去中心 ### 安装 ```shell -go get -v github.com/unionj-cloud/go-doudou@v0.9.4 +go get -v github.com/unionj-cloud/go-doudou@v0.9.5 ``` 如果遇到410 Gone报错,请尝试用下面的命令: ```shell -export GOSUMDB=off && go get -v github.com/unionj-cloud/go-doudou@v0.9.4 +export GOSUMDB=off && go get -v github.com/unionj-cloud/go-doudou@v0.9.5 ``` ### 用法 diff --git a/cmd/root.go b/cmd/root.go index b05058fc..ff3c5cc7 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -7,7 +7,7 @@ import ( // rootCmd is the base command when called without any subcommands var rootCmd = &cobra.Command{ - Version: "v0.9.4", + Version: "v0.9.5", Use: "go-doudou", Short: "go-doudou is microservice rapid develop framework based on openapi 3.0 spec and gossip protocol", Long: `go-doudou works like a scaffolding tool but more than that. diff --git a/ddl/doc/README.md b/ddl/doc/README.md index d84ef5ad..338d74dc 100644 --- a/ddl/doc/README.md +++ b/ddl/doc/README.md @@ -72,7 +72,7 @@ Flags: - Install go-doudou ```shell - go get -v github.com/unionj-cloud/go-doudou@v0.9.4 + go get -v github.com/unionj-cloud/go-doudou@v0.9.5 ``` - Clone demo repository diff --git a/ddl/doc/README_zh.md b/ddl/doc/README_zh.md index bd22cf29..edb83abb 100644 --- a/ddl/doc/README_zh.md +++ b/ddl/doc/README_zh.md @@ -72,7 +72,7 @@ Flags: - Install go-doudou ```shell - go get -v github.com/unionj-cloud/go-doudou@v0.9.4 + go get -v github.com/unionj-cloud/go-doudou@v0.9.5 ``` - Clone demo repository diff --git a/svc/internal/codegen/init.go b/svc/internal/codegen/init.go index 5147fcdf..e4a31043 100644 --- a/svc/internal/codegen/init.go +++ b/svc/internal/codegen/init.go @@ -96,7 +96,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.8.1 github.com/unionj-cloud/cast v1.3.2 - github.com/unionj-cloud/go-doudou v0.9.4 + github.com/unionj-cloud/go-doudou v0.9.5 )` const gitignoreTmpl = `# Binaries for programs and plugins diff --git a/svc/registry/node.go b/svc/registry/node.go index af7f2b68..27bf5b11 100644 --- a/svc/registry/node.go +++ b/svc/registry/node.go @@ -210,7 +210,7 @@ func newConf() *memberlist.Config { } // if env GDD_MEM_WEIGHT is set to > 0, then disable weight calculation, client will always use the same weight if cast.ToInt(config.GddMemWeight.Load()) > 0 { - cfg.WeightInterval = time.Duration(0) + cfg.WeightInterval = 0 } else { weightIntervalStr := config.GddMemWeightInterval.Load() if stringutils.IsNotEmpty(weightIntervalStr) {