Skip to content

Commit

Permalink
fix: match RetryFetcher as HttpFetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel authored Mar 28, 2022
1 parent a6d0418 commit be916e7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/ipfs/add_migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,13 @@ func addMigrations(ctx context.Context, node *core.IpfsNode, fetcher migrations.

for _, fetcher := range fetchers {
switch f := fetcher.(type) {
case nil:
// https://github.com/ipfs/go-ipfs/issues/8780
continue
case *ipfsfetcher.IpfsFetcher:
// Add migrations by connecting to temp node and getting from IPFS
err := addMigrationPaths(ctx, node, f.AddrInfo(), f.FetchedPaths(), pin)
if err != nil {
return err
}
case *migrations.HttpFetcher:
case *migrations.HttpFetcher, *migrations.RetryFetcher: // https://github.com/ipfs/go-ipfs/issues/8780
// Add the downloaded migration files directly
if migrations.DownloadDirectory != "" {
var paths []string
Expand Down

0 comments on commit be916e7

Please sign in to comment.