update all deps to latest versions

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-01-29 16:47:26 +03:00
parent 3876ba5705
commit ac192b7ef5
21 changed files with 338 additions and 165 deletions

View File

@@ -9,8 +9,8 @@ import (
// protocodec "github.com/unistack-org/micro-codec-proto/v3"
protocodec "github.com/unistack-org/micro-codec-segmentio/v3/proto"
rmemory "github.com/unistack-org/micro-registry-memory/v3"
regRouter "github.com/unistack-org/micro-router-registry/v3"
rmemory "github.com/unistack-org/micro-register-memory/v3"
regRouter "github.com/unistack-org/micro-router-register/v3"
gserver "github.com/unistack-org/micro-server-grpc/v3"
pb "github.com/unistack-org/micro-tests/server/grpc/proto"
"github.com/unistack-org/micro/v3/broker"
@@ -35,11 +35,11 @@ func (g *testServer) Call(ctx context.Context, req *pb.Request, rsp *pb.Response
func TestGRPCServer(t *testing.T) {
var err error
r := rmemory.NewRegistry()
b := bmemory.NewBroker(broker.Registry(r))
s := gserver.NewServer(server.Codec("application/grpc+proto", protocodec.NewCodec()), server.Address(":12345"), server.Registry(r), server.Name("helloworld"), gserver.Reflection(true))
r := rmemory.NewRegister()
b := bmemory.NewBroker(broker.Register(r))
s := gserver.NewServer(server.Codec("application/grpc+proto", protocodec.NewCodec()), server.Address(":12345"), server.Register(r), server.Name("helloworld"), gserver.Reflection(true))
// create router
rtr := regRouter.NewRouter(router.Registry(r))
rtr := regRouter.NewRouter(router.Register(r))
h := &testServer{}
err = pb.RegisterTestHandler(s, h)
@@ -62,7 +62,7 @@ func TestGRPCServer(t *testing.T) {
}()
// create client
c := gclient.NewClient(client.Codec("application/grpc+proto", protocodec.NewCodec()), client.Router(rtr), client.Registry(r), client.Broker(b))
c := gclient.NewClient(client.Codec("application/grpc+proto", protocodec.NewCodec()), client.Router(rtr), client.Register(r), client.Broker(b))
testMethods := []string{
"Test.Call",