Skip to content

Commit

Permalink
Update npm_registry_client.go
Browse files Browse the repository at this point in the history
addressing lint comment regarding `grpc.Dial` being deprected
  • Loading branch information
cuixq committed May 20, 2024
1 parent 5893e81 commit 96a01d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/resolution/client/npm_registry_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func NewNpmRegistryClient(workdir string) (*NpmRegistryClient, error) {
dialOpts = append(dialOpts, grpc.WithUserAgent(osv.RequestUserAgent))
}

conn, err := grpc.Dial(depsdev.DepsdevAPI, dialOpts...)
conn, err := grpc.NewClient(depsdev.DepsdevAPI, dialOpts...)
if err != nil {
return nil, fmt.Errorf("dialling %q: %w", depsdev.DepsdevAPI, err)
}
Expand Down

0 comments on commit 96a01d5

Please sign in to comment.