Skip to content

Commit

Permalink
proto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nitronit committed Sep 7, 2023
1 parent 41d514d commit e2cca71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/multiresolver/multi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func TestMultiResolver(t *testing.T) {
ctx, cancelFunc := context.WithTimeout(context.Background(), 30*time.Second)
defer cancelFunc()

grpcClient := proto.NewICosignerGRPCServerClient(connDNS)
grpcClient := proto.NewICosignerGRPCClient(connDNS)
_, err = grpcClient.GetLeader(ctx, &proto.CosignerGRPCGetLeaderRequest{})
require.NoError(t, err)

Expand All @@ -110,7 +110,7 @@ func TestMultiResolver(t *testing.T) {
require.NoError(t, err)
defer connIP.Close()

grpcClient = proto.NewICosignerGRPCServerClient(connIP)
grpcClient = proto.NewICosignerGRPCClient(connIP)
_, err = grpcClient.GetLeader(ctx, &proto.CosignerGRPCGetLeaderRequest{})
require.NoError(t, err)
}
4 changes: 2 additions & 2 deletions pkg/node/raft_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (f *fsm) handleLSSEvent(value string) {
_ = f.thresholdValidator.myCosigner.SaveLastSignedState(lss.ChainID, lss.SignStateConsensus)
}

func (s *RaftStore) getLeaderGRPCClient() (proto.ICosignerGRPCServerClient, *grpc.ClientConn, error) {
func (s *RaftStore) getLeaderGRPCClient() (proto.ICosignerGRPCClient, *grpc.ClientConn, error) {
var leader string
for i := 0; i < 30; i++ {
leader = string(s.GetLeader())
Expand All @@ -68,7 +68,7 @@ func (s *RaftStore) getLeaderGRPCClient() (proto.ICosignerGRPCServerClient, *grp
if err != nil {
return nil, nil, err
}
return proto.NewICosignerGRPCServerClient(conn), conn, nil
return proto.NewICosignerGRPCClient(conn), conn, nil
}

func (s *RaftStore) SignBlock(req ValidatorSignBlockRequest) (*ValidatorSignBlockResponse, error) {
Expand Down

0 comments on commit e2cca71

Please sign in to comment.