Skip to content

Commit

Permalink
chore: fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Apr 8, 2024
1 parent eb15680 commit f38e41d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion abci/example/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func testGRPCSync(ctx context.Context, t *testing.T, logger log.Logger, app type
t.Cleanup(server.Wait)

// Connect to the socket
conn, err := grpc.Dial(socket,
conn, err := grpc.NewClient(socket,
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithContextDialer(dialerFunc),
)
Expand Down
8 changes: 4 additions & 4 deletions privval/grpc/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestSignerClient_GetPubKey(t *testing.T) {
srv, dialer := dialer(t, mockPV, logger)
defer srv.Stop()

conn, err := grpc.DialContext(ctx, "",
conn, err := grpc.NewClient("",
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithContextDialer(dialer),
)
Expand Down Expand Up @@ -78,7 +78,7 @@ func TestSignerClient_SignVote(t *testing.T) {
srv, dialer := dialer(t, mockPV, logger)
defer srv.Stop()

conn, err := grpc.DialContext(ctx, "",
conn, err := grpc.NewClient("",
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithContextDialer(dialer),
)
Expand Down Expand Up @@ -139,11 +139,11 @@ func TestSignerClient_SignProposal(t *testing.T) {
logger := log.NewTestingLogger(t)
srv, dialer := dialer(t, mockPV, logger)
defer srv.Stop()

conn, err := grpc.DialContext(ctx, "",
conn, err := grpc.NewClient("",
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithContextDialer(dialer),
)

require.NoError(t, err)
defer conn.Close()

Expand Down
4 changes: 2 additions & 2 deletions privval/grpc/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func GenerateTLS(certPath, keyPath, ca string, log log.Logger) grpc.DialOption {

// DialRemoteSigner is a generalized function to dial the gRPC server.
func DialRemoteSigner(
ctx context.Context,
_ctx context.Context,
cfg *config.PrivValidatorConfig,
chainID string,
logger log.Logger,
Expand All @@ -113,7 +113,7 @@ func DialRemoteSigner(
dialOptions = append(dialOptions, transportSecurity)

_, address := tmnet.ProtocolAndAddress(cfg.ListenAddr)
conn, err := grpc.DialContext(ctx, address, dialOptions...)
conn, err := grpc.NewClient(address, dialOptions...)
if err != nil {
logger.Error("unable to connect to server", "target", address, "err", err)
}
Expand Down

0 comments on commit f38e41d

Please sign in to comment.