add callback

This commit is contained in:
Callum Waters
2022-09-22 10:35:19 +02:00
parent 61a4e70365
commit dc0b8923cc
5 changed files with 10 additions and 14 deletions
-6
View File
@@ -156,12 +156,6 @@ func testTxEventsSent(t *testing.T, broadcastMethod string) {
}
}
// Test HTTPClient resubscribes upon disconnect && subscription error.
// Test Local client resubscribes upon subscription error.
func TestClientsResubscribe(t *testing.T) {
// TODO(melekes)
}
func TestHTTPReturnsErrorIfClientIsNotRunning(t *testing.T) {
c := getHTTPClient()
+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)
}