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 committed Apr 5, 2022
1 parent 53787a8 commit a763f6c
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 a763f6c

Please sign in to comment.