update after protoc-gen-micro changes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-02-27 13:51:39 +03:00
parent c5fb53c0f1
commit 267b29b658
28 changed files with 394 additions and 517 deletions

View File

@@ -9,6 +9,7 @@ import (
protocodec "github.com/unistack-org/micro-codec-segmentio/v3/proto"
regRouter "github.com/unistack-org/micro-router-register/v3"
gserver "github.com/unistack-org/micro-server-grpc/v3"
gpb "github.com/unistack-org/micro-tests/server/grpc/gproto"
pb "github.com/unistack-org/micro-tests/server/grpc/proto"
"github.com/unistack-org/micro/v3/broker"
"github.com/unistack-org/micro/v3/client"
@@ -40,7 +41,7 @@ func TestGRPCServer(t *testing.T) {
rtr := regRouter.NewRouter(router.Register(r))
h := &testServer{}
err = pb.RegisterTestHandler(s, h)
err = gpb.RegisterTestServer(s, h)
if err != nil {
t.Fatalf("can't register handler: %v", err)
}