Skip to content

Commit 75f72bc

Browse files
committed
use constructor
Signed-off-by: Meredith Lancaster <malancas@github.com>
1 parent c0701c8 commit 75f72bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • pkg/cmd/attestation/verification

pkg/cmd/attestation/verification/tuf.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ func DefaultOptionsWithCacheSetting(tufMetadataDir o.Option[string], hc *http.Cl
3636
opts.CacheValidity = 1
3737

3838
// configure fetcher timeout and retry
39-
f := fetcher.DefaultFetcher{}
39+
f := fetcher.NewDefaultFetcher()
4040
f.SetHTTPClient(hc)
4141
retryOptions := []backoff.RetryOption{backoff.WithMaxTries(3)}
4242
f.SetRetryOptions(retryOptions...)
43-
opts.WithFetcher(&f)
43+
opts.WithFetcher(f)
4444

4545
return opts
4646
}

0 commit comments

Comments
 (0)