Skip to content

Commit a472920

Browse files
committed
remove no longer needed mock
1 parent df0fb7a commit a472920

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tools/resourcedocsgen/pkg/registry/svc/metadata.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ type PackageMetadataProvider interface {
4040
ListPackageMetadata(ctx context.Context) ([]pkg.PackageMeta, error)
4141
}
4242

43-
// HTTPClient is an interface for making HTTP requests
44-
//
45-
//go:generate mockgen -destination=mock_httpclient_test.go -package=svc github.com/pulumi/registry/tools/resourcedocsgen/pkg/registry/svc HTTPClient
46-
type HTTPClient interface {
47-
Do(req *http.Request) (*http.Response, error)
48-
}
49-
5043
// fileSystemProvider implements PackageMetadataProvider using the local yaml data files
5144
// in the pulumi/registry repository.
5245
type fileSystemProvider struct {
@@ -57,7 +50,7 @@ type fileSystemProvider struct {
5750
// to retrieve package metadata.
5851
type registryAPIProvider struct {
5952
apiURL string
60-
client HTTPClient
53+
client *http.Client
6154
}
6255

6356
// PackageMetadata represents the API response structure for package metadata

0 commit comments

Comments
 (0)