Skip to content

Commit

Permalink
fix: unknown fetcher type error
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel authored Mar 28, 2022
1 parent d6de97b commit 4ff7f93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/ipfs/add_migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ 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
return nil
case *ipfsfetcher.IpfsFetcher:
// Add migrations by connecting to temp node and getting from IPFS
err := addMigrationPaths(ctx, node, f.AddrInfo(), f.FetchedPaths(), pin)
Expand Down

0 comments on commit 4ff7f93

Please sign in to comment.