mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-12 22:07:47 +02:00
1. use default memory registry in grpc plugins (#2317)
2. try fixing grpc plugin failed to get issue use v4.0.0-v4.0.0-00010101000000-000000000000 instead of specific version 3. kafka panic on disconnect panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x18 pc=0x1266c50] goroutine 31 [running]: github.com/asim/go-micro/plugins/broker/kafka/v3.(*kBroker).Disconnect(0xc0002400c0) C:/Workshop/Go/pkg/mod/github.com/asim/go-micro/plugins/broker/kafka/v3@v3.7.0/kafka.go:130 +0xd0 github.com/asim/go-micro/plugins/server/grpc/v3.(*grpcServer).Start.func2() C:/Workshop/Go/pkg/mod/github.com/asim/go-micro/plugins/server/grpc/v3@v3.0.0-20210712061837-0532fd9de8ae/grpc.go:998 +0xc8d created by github.com/asim/go-micro/plugins/server/grpc/v3.(*grpcServer).Start C:/Workshop/Go/pkg/mod/github.com/asim/go-micro/plugins/server/grpc/v3@v3.0.0-20210712061837-0532fd9de8ae/grpc.go:917 +0xcaf exit status 2
This commit is contained in:
@ -18,7 +18,6 @@ import (
|
||||
|
||||
bmemory "github.com/asim/go-micro/plugins/broker/memory/v4"
|
||||
gcli "github.com/asim/go-micro/plugins/client/grpc/v4"
|
||||
rmemory "github.com/asim/go-micro/plugins/registry/memory/v4"
|
||||
gsrv "github.com/asim/go-micro/plugins/server/grpc/v4"
|
||||
pb "github.com/asim/go-micro/plugins/server/grpc/v4/proto"
|
||||
tgrpc "github.com/asim/go-micro/plugins/transport/grpc/v4"
|
||||
@ -197,7 +196,7 @@ func testGRPCServer(t *testing.T, s server.Server, c client.Client, r registry.R
|
||||
}
|
||||
|
||||
func getTestHarness() (registry.Registry, broker.Broker, transport.Transport) {
|
||||
r := rmemory.NewRegistry()
|
||||
r := registry.NewMemoryRegistry()
|
||||
b := bmemory.NewBroker()
|
||||
tr := tgrpc.NewTransport()
|
||||
return r, b, tr
|
||||
|
Reference in New Issue
Block a user