Skip to content

Commit

Permalink
Update depsdev_api.go
Browse files Browse the repository at this point in the history
Addressing lint comments on `grpc.Dial` being deprecated
  • Loading branch information
cuixq authored May 20, 2024
1 parent 96a01d5 commit 2928239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/resolution/datasource/depsdev_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func NewDepsDevAPIClient(addr string) (*DepsDevAPIClient, error) {
dialOpts = append(dialOpts, grpc.WithUserAgent(osv.RequestUserAgent))
}

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

0 comments on commit 2928239

Please sign in to comment.