Skip to content

Commit

Permalink
Remove deprecated grpc.Dial use, replace with grpc.NewClient
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Su <derek.su@suse.com>
  • Loading branch information
derekbit committed Jun 10, 2024
1 parent 6d4dadc commit 640a82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/share_manager_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type ShareManagerClient struct {
}

func NewShareManagerClient(address string) (*ShareManagerClient, error) {
conn, err := grpc.Dial(address, grpc.WithTransportCredentials(insecure.NewCredentials()))
conn, err := grpc.NewClient(address, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
return nil, errors.Wrapf(err, "failed to connect share manager service to %v", address)
}
Expand Down

0 comments on commit 640a82d

Please sign in to comment.