Skip to content

Commit

Permalink
use grpc.NewClient instead of Dial
Browse files Browse the repository at this point in the history
  • Loading branch information
melekes committed Aug 20, 2024
1 parent 9fdfbbb commit c9e7e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remotedb/grpcdb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func NewClient(serverAddr, serverCert string) (protodb.DBClient, error) {
if err != nil {
return nil, err
}
cc, err := grpc.Dial(serverAddr, grpc.WithTransportCredentials(creds))
cc, err := grpc.NewClient(serverAddr, grpc.WithTransportCredentials(creds))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit c9e7e3c

Please sign in to comment.