diff --git a/client/client.go b/client/client.go index 0095ae98..d5c4db8d 100644 --- a/client/client.go +++ b/client/client.go @@ -15,9 +15,9 @@ import ( opentracing "github.com/opentracing/opentracing-go" circuit "github.com/rubyist/circuitbreaker" - "github.com/smallnest/rpcx/log" - "github.com/smallnest/rpcx/protocol" - "github.com/smallnest/rpcx/share" + "github.com/smallnest/rpcx/v5/log" + "github.com/smallnest/rpcx/v5/protocol" + "github.com/smallnest/rpcx/v5/share" "go.opencensus.io/trace" ) diff --git a/client/client_test.go b/client/client_test.go index 431d8ec7..09aa4729 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - testutils "github.com/smallnest/rpcx/_testutils" - "github.com/smallnest/rpcx/protocol" - "github.com/smallnest/rpcx/server" + testutils "github.com/smallnest/rpcx/v5/_testutils" + "github.com/smallnest/rpcx/v5/protocol" + "github.com/smallnest/rpcx/v5/server" ) type Args struct { diff --git a/client/connection.go b/client/connection.go index e4cb6fd7..742a7246 100644 --- a/client/connection.go +++ b/client/connection.go @@ -9,8 +9,8 @@ import ( "net/http" "time" - "github.com/smallnest/rpcx/log" - "github.com/smallnest/rpcx/share" + "github.com/smallnest/rpcx/v5/log" + "github.com/smallnest/rpcx/v5/share" ) type ConnFactoryFn func(c *Client, network, address string) (net.Conn, error) diff --git a/client/consul_discovery.go b/client/consul_discovery.go index 40454d62..33a7d06a 100644 --- a/client/consul_discovery.go +++ b/client/consul_discovery.go @@ -8,7 +8,7 @@ import ( "github.com/docker/libkv" "github.com/docker/libkv/store" "github.com/docker/libkv/store/consul" - "github.com/smallnest/rpcx/log" + "github.com/smallnest/rpcx/v5/log" ) func init() { diff --git a/client/etcd_discovery.go b/client/etcd_discovery.go index 4e2f73c8..5b5214d9 100644 --- a/client/etcd_discovery.go +++ b/client/etcd_discovery.go @@ -8,7 +8,7 @@ import ( "github.com/docker/libkv" "github.com/docker/libkv/store" "github.com/docker/libkv/store/etcd" - "github.com/smallnest/rpcx/log" + "github.com/smallnest/rpcx/v5/log" ) func init() { diff --git a/client/etcdv3_discovery.go b/client/etcdv3_discovery.go index 2fc3a1f5..1370c204 100644 --- a/client/etcdv3_discovery.go +++ b/client/etcdv3_discovery.go @@ -8,7 +8,7 @@ import ( "github.com/docker/libkv" "github.com/docker/libkv/store" etcd "github.com/smallnest/libkv-etcdv3-store" - "github.com/smallnest/rpcx/log" + "github.com/smallnest/rpcx/v5/log" ) func init() { diff --git a/client/inprocess_client.go b/client/inprocess_client.go index 2efac046..4cbfd573 100644 --- a/client/inprocess_client.go +++ b/client/inprocess_client.go @@ -7,9 +7,9 @@ import ( "reflect" "sync" - "github.com/smallnest/rpcx/log" - "github.com/smallnest/rpcx/protocol" - "github.com/smallnest/rpcx/share" + "github.com/smallnest/rpcx/v5/log" + "github.com/smallnest/rpcx/v5/protocol" + "github.com/smallnest/rpcx/v5/share" ) // InprocessClient is a in-process client for test. diff --git a/client/mdns_discovery.go b/client/mdns_discovery.go index df61078a..d4efb2ba 100644 --- a/client/mdns_discovery.go +++ b/client/mdns_discovery.go @@ -8,7 +8,7 @@ import ( "time" "github.com/grandcat/zeroconf" - "github.com/smallnest/rpcx/log" + "github.com/smallnest/rpcx/v5/log" ) type serviceMeta struct { diff --git a/client/multiple_servers_discovery.go b/client/multiple_servers_discovery.go index f6f35835..d1886638 100644 --- a/client/multiple_servers_discovery.go +++ b/client/multiple_servers_discovery.go @@ -4,7 +4,7 @@ import ( "sync" "time" - "github.com/smallnest/rpcx/log" + "github.com/smallnest/rpcx/v5/log" ) // MultipleServersDiscovery is a multiple servers service discovery. diff --git a/client/nacos_discovery.go b/client/nacos_discovery.go index 45eff694..ab9117af 100644 --- a/client/nacos_discovery.go +++ b/client/nacos_discovery.go @@ -10,8 +10,8 @@ import ( "github.com/nacos-group/nacos-sdk-go/common/constant" "github.com/nacos-group/nacos-sdk-go/model" "github.com/nacos-group/nacos-sdk-go/vo" - "github.com/smallnest/rpcx/log" - "github.com/smallnest/rpcx/util" + "github.com/smallnest/rpcx/v5/log" + "github.com/smallnest/rpcx/v5/util" ) // NacosDiscovery is a nacos service discovery. diff --git a/client/oneclient.go b/client/oneclient.go index c89115c0..ff10c9cb 100644 --- a/client/oneclient.go +++ b/client/oneclient.go @@ -6,10 +6,10 @@ import ( "io" "sync" - "github.com/smallnest/rpcx/serverplugin" + "github.com/smallnest/rpcx/v5/serverplugin" multierror "github.com/hashicorp/go-multierror" - "github.com/smallnest/rpcx/protocol" + "github.com/smallnest/rpcx/v5/protocol" ) // OneClient wraps servicesPath and XClients. diff --git a/client/oneclient_pool.go b/client/oneclient_pool.go index 0f980633..f9fd8659 100644 --- a/client/oneclient_pool.go +++ b/client/oneclient_pool.go @@ -3,7 +3,7 @@ package client import ( "sync/atomic" - "github.com/smallnest/rpcx/protocol" + "github.com/smallnest/rpcx/v5/protocol" ) // OneClientPool is a oneclient pool with fixed size. diff --git a/client/opencensus.go b/client/opencensus.go index 35c31249..38d17b13 100644 --- a/client/opencensus.go +++ b/client/opencensus.go @@ -3,7 +3,7 @@ package client import ( "context" - "github.com/smallnest/rpcx/share" + "github.com/smallnest/rpcx/v5/share" "go.opencensus.io/trace" ) diff --git a/client/opentracing.go b/client/opentracing.go index fbaa7cc7..7d3790eb 100644 --- a/client/opentracing.go +++ b/client/opentracing.go @@ -5,7 +5,7 @@ import ( opentracing "github.com/opentracing/opentracing-go" "github.com/opentracing/opentracing-go/ext" - "github.com/smallnest/rpcx/share" + "github.com/smallnest/rpcx/v5/share" ) type OpenTracingPlugin struct{} diff --git a/client/plugin.go b/client/plugin.go index 9e91141e..7c2fe9de 100644 --- a/client/plugin.go +++ b/client/plugin.go @@ -4,7 +4,7 @@ import ( "context" "net" - "github.com/smallnest/rpcx/protocol" + "github.com/smallnest/rpcx/v5/protocol" ) // pluginContainer implements PluginContainer interface. diff --git a/client/redis_discovery.go b/client/redis_discovery.go index ce200dd1..8a41ba88 100644 --- a/client/redis_discovery.go +++ b/client/redis_discovery.go @@ -7,7 +7,7 @@ import ( "github.com/abronan/valkeyrie" "github.com/abronan/valkeyrie/store" - "github.com/smallnest/rpcx/log" + "github.com/smallnest/rpcx/v5/log" "github.com/smallnest/valkeyrie/store/redis" ) diff --git a/client/xclient.go b/client/xclient.go index cc0ac411..7341cd23 100644 --- a/client/xclient.go +++ b/client/xclient.go @@ -14,10 +14,10 @@ import ( "time" "github.com/juju/ratelimit" - ex "github.com/smallnest/rpcx/errors" - "github.com/smallnest/rpcx/protocol" - "github.com/smallnest/rpcx/serverplugin" - "github.com/smallnest/rpcx/share" + ex "github.com/smallnest/rpcx/v5/errors" + "github.com/smallnest/rpcx/v5/protocol" + "github.com/smallnest/rpcx/v5/serverplugin" + "github.com/smallnest/rpcx/v5/share" ) const ( diff --git a/client/xclient_pool.go b/client/xclient_pool.go index 11d9d91e..024ca4be 100644 --- a/client/xclient_pool.go +++ b/client/xclient_pool.go @@ -3,7 +3,7 @@ package client import ( "sync/atomic" - "github.com/smallnest/rpcx/protocol" + "github.com/smallnest/rpcx/v5/protocol" ) // XClientPool is a xclient pool with fixed size. diff --git a/client/xclient_test.go b/client/xclient_test.go index 74c80bd6..98803986 100644 --- a/client/xclient_test.go +++ b/client/xclient_test.go @@ -8,10 +8,10 @@ import ( "fmt" - testutils "github.com/smallnest/rpcx/_testutils" - "github.com/smallnest/rpcx/protocol" - "github.com/smallnest/rpcx/server" - "github.com/smallnest/rpcx/share" + testutils "github.com/smallnest/rpcx/v5/_testutils" + "github.com/smallnest/rpcx/v5/protocol" + "github.com/smallnest/rpcx/v5/server" + "github.com/smallnest/rpcx/v5/share" ) func TestXClient_Thrift(t *testing.T) { diff --git a/client/zookeeper_discovery.go b/client/zookeeper_discovery.go index 4fc8c674..01662d4f 100644 --- a/client/zookeeper_discovery.go +++ b/client/zookeeper_discovery.go @@ -8,7 +8,7 @@ import ( "github.com/docker/libkv" "github.com/docker/libkv/store" "github.com/docker/libkv/store/zookeeper" - "github.com/smallnest/rpcx/log" + "github.com/smallnest/rpcx/v5/log" ) func init() { diff --git a/go.mod b/go.mod index c550fb87..011176a5 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/smallnest/rpcx +module github.com/smallnest/rpcx/v5 go 1.13 @@ -47,7 +47,6 @@ require ( github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da // indirect github.com/satori/go.uuid v1.2.0 // indirect github.com/smallnest/libkv-etcdv3-store v1.1.1 - github.com/smallnest/rpcx/v5 v5.3.0 github.com/smallnest/valkeyrie v0.0.0-20191030065038-13edeca3d026 github.com/soheilhy/cmux v0.1.4 github.com/tatsushid/go-fastping v0.0.0-20160109021039-d7bb493dee3e diff --git a/go.sum b/go.sum index f6d447fa..0e818878 100644 --- a/go.sum +++ b/go.sum @@ -327,7 +327,8 @@ github.com/sirupsen/logrus v1.2.0 h1:juTguoYk5qI21pwyTXY3B3Y5cOTH3ZUyZCg1v/mihuo github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/smallnest/libkv-etcdv3-store v1.1.1 h1:Y5qRz0xgFuNLv6Cc4L6yxO5rst2BSklYxKD00Ir3XmA= github.com/smallnest/libkv-etcdv3-store v1.1.1/go.mod h1:VAzE2+HQwhZZanve7ObW+IFWdK0WMVoQhxmyuvLCfog= -github.com/smallnest/rpcx/v5 v5.3.0 h1:Ubh937UYV5S2FXOz/o63RfzX/Q0KmSmJT4vq6jxxXk8= +github.com/smallnest/rpcx v0.0.0-20200428102033-c13fa98bc4ff h1:Tsk5IfmjeoWh2QcXf1DZaSP5kiBhRIFpuDb8YwrgoNg= +github.com/smallnest/rpcx v0.0.0-20200428102033-c13fa98bc4ff/go.mod h1:/jERLfHN4rxXQNtkUIjz07a7y3LJXvD8pPz9inZ/mVI= github.com/smallnest/rpcx/v5 v5.3.0/go.mod h1:009obAQxGzBJGwYJZpkBZA+xSghQO2/sgyO9Edb3C9E= github.com/smallnest/valkeyrie v0.0.0-20191030065038-13edeca3d026 h1:2JZDSZUojMiRtgWzSyO7lZSxCKfTsItI2ilEGTBuSNc= github.com/smallnest/valkeyrie v0.0.0-20191030065038-13edeca3d026/go.mod h1:ixoXqhXnCjUFM17O2cOVoJ98KzDnCb2+iGtJDmtC/qs= diff --git a/protocol/compressor.go b/protocol/compressor.go index 752054c2..d29aca13 100644 --- a/protocol/compressor.go +++ b/protocol/compressor.go @@ -1,7 +1,7 @@ package protocol import ( - "github.com/smallnest/rpcx/util" + "github.com/smallnest/rpcx/v5/util" ) // Compressor defines a common compression interface. diff --git a/protocol/message.go b/protocol/message.go index 628f7cb6..2dde5365 100644 --- a/protocol/message.go +++ b/protocol/message.go @@ -7,7 +7,7 @@ import ( "fmt" "io" - "github.com/smallnest/rpcx/util" + "github.com/smallnest/rpcx/v5/util" ) var ( diff --git a/reflection/server_reflection.go b/reflection/server_reflection.go index ea2f4d2b..b3a32223 100644 --- a/reflection/server_reflection.go +++ b/reflection/server_reflection.go @@ -13,7 +13,7 @@ import ( "github.com/ChimeraCoder/gojson" jsoniter "github.com/json-iterator/go" - "github.com/smallnest/rpcx/log" + "github.com/smallnest/rpcx/v5/log" ) var typeOfError = reflect.TypeOf((*error)(nil)).Elem() diff --git a/reflection/server_reflection_test.go b/reflection/server_reflection_test.go index 6bebc10e..928c9c56 100644 --- a/reflection/server_reflection_test.go +++ b/reflection/server_reflection_test.go @@ -6,7 +6,7 @@ import ( "github.com/kr/pretty" - testutils "github.com/smallnest/rpcx/_testutils" + testutils "github.com/smallnest/rpcx/v5/_testutils" ) type PBArith int diff --git a/server/converter.go b/server/converter.go index a4cdf549..b3164fdf 100644 --- a/server/converter.go +++ b/server/converter.go @@ -6,8 +6,8 @@ import ( "net/url" "strconv" - "github.com/smallnest/rpcx/protocol" - "github.com/smallnest/rpcx/share" + "github.com/smallnest/rpcx/v5/protocol" + "github.com/smallnest/rpcx/v5/share" ) const ( diff --git a/server/gateway.go b/server/gateway.go index 10266b1b..2dc23ee5 100644 --- a/server/gateway.go +++ b/server/gateway.go @@ -12,9 +12,9 @@ import ( "github.com/julienschmidt/httprouter" "github.com/rs/cors" - "github.com/smallnest/rpcx/log" - "github.com/smallnest/rpcx/protocol" - "github.com/smallnest/rpcx/share" + "github.com/smallnest/rpcx/v5/log" + "github.com/smallnest/rpcx/v5/protocol" + "github.com/smallnest/rpcx/v5/share" "github.com/soheilhy/cmux" ) diff --git a/server/jsonrpc2.go b/server/jsonrpc2.go index dc6fc2bf..e08ebaec 100644 --- a/server/jsonrpc2.go +++ b/server/jsonrpc2.go @@ -10,8 +10,8 @@ import ( "strings" "github.com/rs/cors" - "github.com/smallnest/rpcx/protocol" - "github.com/smallnest/rpcx/share" + "github.com/smallnest/rpcx/v5/protocol" + "github.com/smallnest/rpcx/v5/share" ) func (s *Server) jsonrpcHandler(w http.ResponseWriter, r *http.Request) { diff --git a/server/plugin.go b/server/plugin.go index 070e57c7..11a0de61 100644 --- a/server/plugin.go +++ b/server/plugin.go @@ -4,8 +4,8 @@ import ( "context" "net" - "github.com/smallnest/rpcx/errors" - "github.com/smallnest/rpcx/protocol" + "github.com/smallnest/rpcx/v5/errors" + "github.com/smallnest/rpcx/v5/protocol" ) //PluginContainer represents a plugin container that defines all methods to manage plugins. diff --git a/server/server.go b/server/server.go index a0b53852..6f495d26 100644 --- a/server/server.go +++ b/server/server.go @@ -21,9 +21,9 @@ import ( "os/signal" "syscall" - "github.com/smallnest/rpcx/log" - "github.com/smallnest/rpcx/protocol" - "github.com/smallnest/rpcx/share" + "github.com/smallnest/rpcx/v5/log" + "github.com/smallnest/rpcx/v5/protocol" + "github.com/smallnest/rpcx/v5/share" ) // ErrServerClosed is returned by the Server's Serve, ListenAndServe after a call to Shutdown or Close. diff --git a/server/server_test.go b/server/server_test.go index c0727873..264045e2 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -7,9 +7,9 @@ import ( "time" - testutils "github.com/smallnest/rpcx/_testutils" - "github.com/smallnest/rpcx/protocol" - "github.com/smallnest/rpcx/share" + testutils "github.com/smallnest/rpcx/v5/_testutils" + "github.com/smallnest/rpcx/v5/protocol" + "github.com/smallnest/rpcx/v5/share" ) type Args struct { diff --git a/server/service.go b/server/service.go index 2d614a00..d5dd704b 100644 --- a/server/service.go +++ b/server/service.go @@ -11,8 +11,8 @@ import ( "unicode" "unicode/utf8" - rerrors "github.com/smallnest/rpcx/errors" - "github.com/smallnest/rpcx/log" + rerrors "github.com/smallnest/rpcx/v5/errors" + "github.com/smallnest/rpcx/v5/log" ) // Precompute the reflect type for error. Can't use error directly diff --git a/serverplugin/alias.go b/serverplugin/alias.go index 4f59ad90..3147f5ae 100644 --- a/serverplugin/alias.go +++ b/serverplugin/alias.go @@ -3,7 +3,7 @@ package serverplugin import ( "context" - "github.com/smallnest/rpcx/protocol" + "github.com/smallnest/rpcx/v5/protocol" ) var aliasAppliedKey = "__aliasAppliedKey" diff --git a/serverplugin/consul.go b/serverplugin/consul.go index 686063f4..cfc64414 100644 --- a/serverplugin/consul.go +++ b/serverplugin/consul.go @@ -14,7 +14,7 @@ import ( "github.com/docker/libkv/store" "github.com/docker/libkv/store/consul" metrics "github.com/rcrowley/go-metrics" - "github.com/smallnest/rpcx/log" + "github.com/smallnest/rpcx/v5/log" ) func init() { diff --git a/serverplugin/consul_test.go b/serverplugin/consul_test.go index 81e32e90..fd536eee 100644 --- a/serverplugin/consul_test.go +++ b/serverplugin/consul_test.go @@ -5,7 +5,7 @@ import ( "time" metrics "github.com/rcrowley/go-metrics" - "github.com/smallnest/rpcx/server" + "github.com/smallnest/rpcx/v5/server" ) func TestConsulRegistry(t *testing.T) { diff --git a/serverplugin/etcd.go b/serverplugin/etcd.go index cc36ba45..0a69ca38 100644 --- a/serverplugin/etcd.go +++ b/serverplugin/etcd.go @@ -14,7 +14,7 @@ import ( "github.com/docker/libkv/store" "github.com/docker/libkv/store/etcd" metrics "github.com/rcrowley/go-metrics" - "github.com/smallnest/rpcx/log" + "github.com/smallnest/rpcx/v5/log" ) func init() { diff --git a/serverplugin/etcd_test.go b/serverplugin/etcd_test.go index ca63f8f7..5af41131 100644 --- a/serverplugin/etcd_test.go +++ b/serverplugin/etcd_test.go @@ -5,7 +5,7 @@ import ( "time" metrics "github.com/rcrowley/go-metrics" - "github.com/smallnest/rpcx/server" + "github.com/smallnest/rpcx/v5/server" ) func TestEtcdRegistry(t *testing.T) { diff --git a/serverplugin/etcdv3.go b/serverplugin/etcdv3.go index be7f9008..e4f078e3 100644 --- a/serverplugin/etcdv3.go +++ b/serverplugin/etcdv3.go @@ -14,7 +14,7 @@ import ( "github.com/docker/libkv/store" metrics "github.com/rcrowley/go-metrics" etcd "github.com/smallnest/libkv-etcdv3-store" - "github.com/smallnest/rpcx/log" + "github.com/smallnest/rpcx/v5/log" ) func init() { diff --git a/serverplugin/file_transfer.go b/serverplugin/file_transfer.go index 5df75d83..ea83e620 100644 --- a/serverplugin/file_transfer.go +++ b/serverplugin/file_transfer.go @@ -9,8 +9,8 @@ import ( "time" "github.com/hashicorp/golang-lru" - "github.com/smallnest/rpcx/log" - "github.com/smallnest/rpcx/server" + "github.com/smallnest/rpcx/v5/log" + "github.com/smallnest/rpcx/v5/server" ) var ( diff --git a/serverplugin/metrics.go b/serverplugin/metrics.go index 5f779d0f..fee036ea 100644 --- a/serverplugin/metrics.go +++ b/serverplugin/metrics.go @@ -7,8 +7,8 @@ import ( "github.com/rcrowley/go-metrics" "github.com/rcrowley/go-metrics/exp" - "github.com/smallnest/rpcx/protocol" - "github.com/smallnest/rpcx/server" + "github.com/smallnest/rpcx/v5/protocol" + "github.com/smallnest/rpcx/v5/server" ) // MetricsPlugin has an issue. It changes seq of requests and it is wrong!!!! diff --git a/serverplugin/nacos.go b/serverplugin/nacos.go index 577a3cac..c1bca091 100644 --- a/serverplugin/nacos.go +++ b/serverplugin/nacos.go @@ -8,8 +8,8 @@ import ( "github.com/nacos-group/nacos-sdk-go/clients/naming_client" "github.com/nacos-group/nacos-sdk-go/common/constant" "github.com/nacos-group/nacos-sdk-go/vo" - "github.com/smallnest/rpcx/log" - "github.com/smallnest/rpcx/util" + "github.com/smallnest/rpcx/v5/log" + "github.com/smallnest/rpcx/v5/util" ) // NacosRegisterPlugin implements consul registry. diff --git a/serverplugin/opencensus.go b/serverplugin/opencensus.go index 565fa65a..4ecb34dd 100644 --- a/serverplugin/opencensus.go +++ b/serverplugin/opencensus.go @@ -4,9 +4,9 @@ import ( "context" "net" - "github.com/smallnest/rpcx/protocol" - "github.com/smallnest/rpcx/server" - "github.com/smallnest/rpcx/share" + "github.com/smallnest/rpcx/v5/protocol" + "github.com/smallnest/rpcx/v5/server" + "github.com/smallnest/rpcx/v5/share" "go.opencensus.io/trace" ) diff --git a/serverplugin/opentracing.go b/serverplugin/opentracing.go index 66ecbc1d..ae3152b1 100644 --- a/serverplugin/opentracing.go +++ b/serverplugin/opentracing.go @@ -7,9 +7,9 @@ import ( opentracing "github.com/opentracing/opentracing-go" "github.com/opentracing/opentracing-go/ext" "github.com/opentracing/opentracing-go/log" - "github.com/smallnest/rpcx/protocol" - "github.com/smallnest/rpcx/server" - "github.com/smallnest/rpcx/share" + "github.com/smallnest/rpcx/v5/protocol" + "github.com/smallnest/rpcx/v5/server" + "github.com/smallnest/rpcx/v5/share" ) type OpenTracingPlugin struct{} diff --git a/serverplugin/redis.go b/serverplugin/redis.go index 46a694f7..8ce4f48e 100644 --- a/serverplugin/redis.go +++ b/serverplugin/redis.go @@ -13,7 +13,7 @@ import ( "github.com/abronan/valkeyrie" "github.com/abronan/valkeyrie/store" metrics "github.com/rcrowley/go-metrics" - "github.com/smallnest/rpcx/log" + "github.com/smallnest/rpcx/v5/log" "github.com/smallnest/valkeyrie/store/redis" ) diff --git a/serverplugin/trace.go b/serverplugin/trace.go index abc3698e..d99381dd 100644 --- a/serverplugin/trace.go +++ b/serverplugin/trace.go @@ -6,7 +6,7 @@ package serverplugin // "reflect" // "runtime" -// "github.com/smallnest/rpcx/protocol" +// "github.com/smallnest/rpcx/v5/protocol" // "golang.org/x/net/trace" // ) diff --git a/serverplugin/zookeeper.go b/serverplugin/zookeeper.go index 0e804a8c..5f546470 100644 --- a/serverplugin/zookeeper.go +++ b/serverplugin/zookeeper.go @@ -15,7 +15,7 @@ import ( "github.com/docker/libkv/store" metrics "github.com/rcrowley/go-metrics" - "github.com/smallnest/rpcx/log" + "github.com/smallnest/rpcx/v5/log" ) func init() { diff --git a/serverplugin/zookeeper_test.go b/serverplugin/zookeeper_test.go index 8c96cc67..298b3bb3 100644 --- a/serverplugin/zookeeper_test.go +++ b/serverplugin/zookeeper_test.go @@ -5,7 +5,7 @@ import ( "time" metrics "github.com/rcrowley/go-metrics" - "github.com/smallnest/rpcx/server" + "github.com/smallnest/rpcx/v5/server" ) func TestZookeeperRegistry(t *testing.T) { diff --git a/share/share.go b/share/share.go index 3eeee9c8..bb5981f9 100644 --- a/share/share.go +++ b/share/share.go @@ -1,8 +1,8 @@ package share import ( - "github.com/smallnest/rpcx/codec" - "github.com/smallnest/rpcx/protocol" + "github.com/smallnest/rpcx/v5/codec" + "github.com/smallnest/rpcx/v5/protocol" ) const ( diff --git a/tool/xgen/xgen.go b/tool/xgen/xgen.go index f7e24bca..b02b7701 100644 --- a/tool/xgen/xgen.go +++ b/tool/xgen/xgen.go @@ -9,7 +9,7 @@ import ( "os" "path/filepath" - "github.com/smallnest/rpcx/tool/xgen/parser" + "github.com/smallnest/rpcx/v5/tool/xgen/parser" ) var (