Skip to content

Commit

Permalink
addressed feedback from PR review
Browse files Browse the repository at this point in the history
Signed-off-by: Gergely Brautigam <[email protected]>

- addressed sync lock missing to ensure concurrent calls
- addressed code formatting issues
- addressed missing Logger transport augmentation
- addressed formatting and language issues
- removed unused docker code
  • Loading branch information
Skarlso committed Dec 17, 2024
1 parent 024a606 commit 31c23e8
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 2,093 deletions.
9 changes: 4 additions & 5 deletions api/oci/extensions/repositories/ocireg/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ func (r *RepositoryImpl) getResolver(comp string) (oras.Resolver, error) {
}

client := retry.DefaultClient
client.Transport = ocmlog.NewRoundTripper(retry.DefaultClient.Transport, logger)
if r.info.Scheme == "https" {
// set up TLS
//nolint:gosec // used like the default, there are OCI servers (quay.io) not working with min version.
Expand All @@ -157,11 +158,9 @@ func (r *RepositoryImpl) getResolver(comp string) (oras.Resolver, error) {
return rootCAs
}(),
}
client = &http.Client{
Transport: retry.NewTransport(&http.Transport{
TLSClientConfig: conf,
}),
}
client.Transport = ocmlog.NewRoundTripper(retry.NewTransport(&http.Transport{
TLSClientConfig: conf,
}), logger)
}

authClient := &auth.Client{
Expand Down
6 changes: 0 additions & 6 deletions api/tech/docker/README.md

This file was deleted.

60 changes: 0 additions & 60 deletions api/tech/docker/errors/errors.go

This file was deleted.

203 changes: 0 additions & 203 deletions api/tech/docker/fetcher.go

This file was deleted.

Loading

0 comments on commit 31c23e8

Please sign in to comment.