Skip to content

Commit

Permalink
Merge pull request #981 from lzp0412/develop
Browse files Browse the repository at this point in the history
Upgrade nacos-sdk-go version to v1.0.3
  • Loading branch information
AlexStocks committed Jan 9, 2021
2 parents bf3022f + 3188eb8 commit f3966dd
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Apache Dubbo-go
Copyright 2018-2020 The Apache Software Foundation
Copyright 2018-2021 The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Apache License, Version 2.0

## Release note ##

[v1.5.5 - Jan 5, 2021](https://github.com/apache/dubbo-go/releases/tag/v1.5.5)

[v1.4.5 - Nov 18, 2020](https://github.com/apache/dubbo-go/releases/tag/v1.4.5)

[v1.5.4 - Nov 1, 2020](https://github.com/apache/dubbo-go/releases/tag/v1.5.4)

[v1.5.3 - Sep 23, 2020](https://github.com/apache/dubbo-go/releases/tag/v1.5.3)

[v1.5.2 - discard]()

[v1.5.1 - Aug 23, 2020](https://github.com/apache/dubbo-go/releases/tag/v1.5.1)

[v1.5.0 - July 24, 2020](https://github.com/apache/dubbo-go/releases/tag/v1.5.0)
Expand Down Expand Up @@ -260,7 +260,7 @@ If you are using [apache/dubbo-go](github.com/apache/dubbo-go) and think that it
</a>
</td>
</tr>
<tr></tr>
<tr></tr>
</tbody>
</table>
</div>
14 changes: 7 additions & 7 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ Apache License, Version 2.0

## 发布日志 ##

[v1.5.5 - 2021年1月5日](https://github.com/apache/dubbo-go/releases/tag/v1.5.5)

[v1.4.5 - 2020年11月18日](https://github.com/apache/dubbo-go/releases/tag/v1.4.5)

[v1.5.4 - 2020年11月1日](https://github.com/apache/dubbo-go/releases/tag/v1.5.4)

[v1.5.3 - 2020年9月23日](https://github.com/apache/dubbo-go/releases/tag/v1.5.3)

[v1.5.2 - 舍弃]()

[v1.5.1 - 2020年8月23日](https://github.com/apache/dubbo-go/releases/tag/v1.5.1)

[v1.5.0 - 2020年7月24日](https://github.com/apache/dubbo-go/releases/tag/v1.5.0)
Expand Down Expand Up @@ -67,11 +67,11 @@ Apache License, Version 2.0
* Jsonrpc2.0
* [gRPC](https://github.com/apache/dubbo-go/pull/311)
* [RESTful](https://github.com/apache/dubbo-go/pull/352)

- 路由器
* [Condition router](https://github.com/apache/dubbo-go/pull/294)
* [Health check router](https://github.com/apache/dubbo-go/pull/389)

- 注册中心
* ZooKeeper
* [etcd v3](https://github.com/apache/dubbo-go/pull/148)
Expand Down Expand Up @@ -112,7 +112,7 @@ Apache License, Version 2.0

- 调用
* [泛化调用](https://github.com/apache/dubbo-go/pull/122)

- 监控
* Opentracing API
* [Prometheus](https://github.com/apache/dubbo-go/pull/342)
Expand Down Expand Up @@ -258,7 +258,7 @@ make test
</a>
</td>
</tr>
<tr></tr>
<tr></tr>
</tbody>
</table>
</div>
</div>
2 changes: 1 addition & 1 deletion cluster/cluster_impl/available_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ func NewAvailableCluster() cluster.Cluster {
}

// Join returns a baseClusterInvoker instance
func (cluser *availableCluster) Join(directory cluster.Directory) protocol.Invoker {
func (cluster *availableCluster) Join(directory cluster.Directory) protocol.Invoker {
return NewAvailableClusterInvoker(directory)
}
2 changes: 1 addition & 1 deletion common/constant/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const (

const (
SIMPLE_METADATA_SERVICE_NAME = "MetadataService"
DEFAULT_REVIESION = "N/A"
DEFAULT_REVISION = "N/A"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions common/constant/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ package constant

const (
// Version apache/dubbo-go version
Version = "1.3.0"
Version = "1.5.5"
// Name module name
Name = "dubbogo"
// Date release date
DATE = "2020/01/12"
DATE = "2021/01/05"
)
8 changes: 4 additions & 4 deletions common/proxy/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ func TestProxyImplementForContext(t *testing.T) {
p := NewProxy(invoker, nil, map[string]string{constant.ASYNC_KEY: "false"})
s := &TestService{}
p.Implement(s)
attahments1 := make(map[string]interface{}, 4)
attahments1["k1"] = "v1"
attahments1["k2"] = "v2"
context := context.WithValue(context.Background(), constant.AttachmentKey, attahments1)
attachments1 := make(map[string]interface{}, 4)
attachments1["k1"] = "v1"
attachments1["k2"] = "v2"
context := context.WithValue(context.Background(), constant.AttachmentKey, attachments1)
r, err := p.Get().(*TestService).MethodSix(context, "xxx")
v1 := r.(map[string]interface{})
assert.NoError(t, err)
Expand Down
8 changes: 4 additions & 4 deletions config_center/configurator/override_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const (
failover = "failover"
)

func TestConfigureVerison2p6(t *testing.T) {
func TestConfigureVersion2p6(t *testing.T) {
url, err := common.NewURL("override://0.0.0.0:0/com.xxx.mock.userProvider?group=1&version=1&cluster=failfast&application=BDTService")
assert.NoError(t, err)
configurator := extension.GetConfigurator(defaults, url)
Expand All @@ -49,7 +49,7 @@ func TestConfigureVerison2p6(t *testing.T) {
assert.Equal(t, failfast, providerUrl.GetParam(constant.CLUSTER_KEY, ""))
}

func TestConfigureVerisonOverrideAddr(t *testing.T) {
func TestConfigureVersionOverrideAddr(t *testing.T) {
url, err := common.NewURL("override://0.0.0.0:0/com.xxx.mock.userProvider?group=1&version=1&cluster=failfast&application=BDTService&providerAddresses=127.0.0.2:20001|127.0.0.3:20001")
assert.NoError(t, err)
configurator := extension.GetConfigurator(defaults, url)
Expand All @@ -61,7 +61,7 @@ func TestConfigureVerisonOverrideAddr(t *testing.T) {
assert.Equal(t, failover, providerUrl.GetParam(constant.CLUSTER_KEY, ""))
}

func TestConfigureVerison2p6WithIp(t *testing.T) {
func TestConfigureVersion2p6WithIp(t *testing.T) {
url, err := common.NewURL("override://127.0.0.1:20001/com.xxx.mock.userProvider?group=1&version=1&cluster=failfast&application=BDTService")
assert.NoError(t, err)
configurator := extension.GetConfigurator(defaults, url)
Expand All @@ -74,7 +74,7 @@ func TestConfigureVerison2p6WithIp(t *testing.T) {

}

func TestConfigureVerison2p7(t *testing.T) {
func TestConfigureVersion2p7(t *testing.T) {
url, err := common.NewURL("jsonrpc://0.0.0.0:20001/com.xxx.mock.userProvider?group=1&version=1&cluster=failfast&application=BDTService&configVersion=1.0&side=provider")
assert.NoError(t, err)
configurator := extension.GetConfigurator(defaults, url)
Expand Down
2 changes: 1 addition & 1 deletion filter/filter_impl/tps/tps_limiter_method_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"testing"
)
import (
"github.com/apache/dubbo-go/filter"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
)
Expand All @@ -31,6 +30,7 @@ import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/common/extension"
"github.com/apache/dubbo-go/filter"
"github.com/apache/dubbo-go/protocol/invocation"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require (
github.com/magiconair/properties v1.8.4
github.com/mitchellh/mapstructure v1.4.0
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
github.com/nacos-group/nacos-sdk-go v1.0.1
github.com/nacos-group/nacos-sdk-go v1.0.3
github.com/opentracing/opentracing-go v1.2.0
github.com/pierrec/lz4 v2.2.6+incompatible // indirect
github.com/pkg/errors v0.9.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@ github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8m
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
github.com/nacos-group/nacos-sdk-go v1.0.1 h1:VNmXGlSS28xOmkO5Nxk5WRp6f1HMosAmG9pDtcnUFcw=
github.com/nacos-group/nacos-sdk-go v1.0.1/go.mod h1:hlAPn3UdzlxIlSILAyOXKxjFSvDJ9oLzTJ9hLAK1KzA=
github.com/nacos-group/nacos-sdk-go v1.0.3 h1:A2tCWcjuP6bSEjEfNwNnrY+9M0h13XRMDyLY+DPqHMI=
github.com/nacos-group/nacos-sdk-go v1.0.3/go.mod h1:hlAPn3UdzlxIlSILAyOXKxjFSvDJ9oLzTJ9hLAK1KzA=
github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg=
github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU=
github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k=
Expand Down
2 changes: 1 addition & 1 deletion metadata/service/remote/service_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (m metadataServiceProxy) Version() (string, error) {
func newMetadataServiceProxy(ins registry.ServiceInstance) service.MetadataService {
revision := ins.GetMetadata()[constant.EXPORTED_SERVICES_REVISION_PROPERTY_NAME]
if len(revision) == 0 {
revision = constant.DEFAULT_REVIESION
revision = constant.DEFAULT_REVISION
}

return &metadataServiceProxy{
Expand Down
6 changes: 3 additions & 3 deletions protocol/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ type Client struct {
func NewClient(url *common.URL) *Client {
// if global trace instance was set , it means trace function enabled. If not , will return Nooptracer
tracer := opentracing.GlobalTracer()
dailOpts := make([]grpc.DialOption, 0, 4)
dialOpts := make([]grpc.DialOption, 0, 4)
maxMessageSize, _ := strconv.Atoi(url.GetParam(constant.MESSAGE_SIZE_KEY, "4"))
dailOpts = append(dailOpts, grpc.WithInsecure(), grpc.WithBlock(), grpc.WithUnaryInterceptor(
dialOpts = append(dialOpts, grpc.WithInsecure(), grpc.WithBlock(), grpc.WithUnaryInterceptor(
otgrpc.OpenTracingClientInterceptor(tracer, otgrpc.LogPayloads())),
grpc.WithDefaultCallOptions(
grpc.CallContentSubtype(clientConf.ContentSubType),
grpc.MaxCallRecvMsgSize(1024*1024*maxMessageSize),
grpc.MaxCallSendMsgSize(1024*1024*maxMessageSize)))
conn, err := grpc.Dial(url.Location, dailOpts...)
conn, err := grpc.Dial(url.Location, dialOpts...)
if err != nil {
panic(err)
}
Expand Down
4 changes: 2 additions & 2 deletions registry/etcdv3/service_discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ func Test_newEtcdV3ServiceDiscovery(t *testing.T) {

func TestEtcdV3ServiceDiscovery_GetDefaultPageSize(t *testing.T) {
setUp()
serviceDiscovry := &etcdV3ServiceDiscovery{}
assert.Equal(t, registry.DefaultPageSize, serviceDiscovry.GetDefaultPageSize())
serviceDiscovery := &etcdV3ServiceDiscovery{}
assert.Equal(t, registry.DefaultPageSize, serviceDiscovery.GetDefaultPageSize())
}
4 changes: 2 additions & 2 deletions registry/nacos/service_discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ func TestNacosServiceDiscovery_CRUD(t *testing.T) {

func TestNacosServiceDiscovery_GetDefaultPageSize(t *testing.T) {
prepareData()
serviceDiscovry, _ := extension.GetServiceDiscovery(constant.NACOS_KEY, testName)
assert.Equal(t, registry.DefaultPageSize, serviceDiscovry.GetDefaultPageSize())
serviceDiscovery, _ := extension.GetServiceDiscovery(constant.NACOS_KEY, testName)
assert.Equal(t, registry.DefaultPageSize, serviceDiscovery.GetDefaultPageSize())
}

func prepareData() {
Expand Down
2 changes: 1 addition & 1 deletion remoting/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ type AsyncCallbackResponse struct {
Reply interface{}
}

// the client sends requst to server, there is one pendingResponse at client side to wait the response from server
// the client sends request to server, there is one pendingResponse at client side to wait the response from server
type PendingResponse struct {
seq int64
Err error
Expand Down

0 comments on commit f3966dd

Please sign in to comment.