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 authored and innobead committed Jun 11, 2024
1 parent 6d4dadc commit d4c9309
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 d4c9309

Please sign in to comment.