refactor: migrate to cosmos/gogoproto (backport #9356) (#9381)

* refactor: migrate to `cosmos/gogoproto` (#9356)

* refactor: migrate to `cosmos/gogoproto`

* add changelog

* Update Makefile

Co-authored-by: Thane Thomson <connect@thanethomson.com>

* update link

Co-authored-by: Thane Thomson <connect@thanethomson.com>

* `go mod tidy`

Co-authored-by: Thane Thomson <connect@thanethomson.com>
This commit is contained in:
Julien Robert
2022-09-07 13:46:25 -04:00
committed by GitHub
co-authored by Thane Thomson
parent 98ed397745
commit 4626bc949d
84 changed files with 199 additions and 347 deletions
+5 -4
View File
@@ -6,7 +6,8 @@ package coregrpc
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
types "github.com/tendermint/tendermint/abci/types"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
@@ -245,10 +246,10 @@ type BroadcastAPIClient interface {
}
type broadcastAPIClient struct {
cc *grpc.ClientConn
cc grpc1.ClientConn
}
func NewBroadcastAPIClient(cc *grpc.ClientConn) BroadcastAPIClient {
func NewBroadcastAPIClient(cc grpc1.ClientConn) BroadcastAPIClient {
return &broadcastAPIClient{cc}
}
@@ -287,7 +288,7 @@ func (*UnimplementedBroadcastAPIServer) BroadcastTx(ctx context.Context, req *Re
return nil, status.Errorf(codes.Unimplemented, "method BroadcastTx not implemented")
}
func RegisterBroadcastAPIServer(s *grpc.Server, srv BroadcastAPIServer) {
func RegisterBroadcastAPIServer(s grpc1.Server, srv BroadcastAPIServer) {
s.RegisterService(&_BroadcastAPI_serviceDesc, srv)
}