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 committed Apr 5, 2022
1 parent 4df7b79 commit 53787a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/ipfs/add_migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os"
"path/filepath"

"github.com/ipfs/go-ipfs-files"
files "github.com/ipfs/go-ipfs-files"
"github.com/ipfs/go-ipfs/core"
"github.com/ipfs/go-ipfs/core/coreapi"
"github.com/ipfs/go-ipfs/repo/fsrepo/migrations"
Expand All @@ -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
continue
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 53787a8

Please sign in to comment.