fix: unknown fetcher type error (#8830)
match RetryFetcher as HttpFetcher
Marcin Rataj committed
Apr 6, 2022 at 02:10 UTC
e309682545a7be80541a6cdd160468d10e72c69b
1 file changed
+2
-2
cmd/ipfs/add_migrations.go
+2
-2
@@ -9,7 +9,7 @@ import (
9
"os"
10
"path/filepath"
11
12
- "github.com/ipfs/go-ipfs-files"
12
+ files "github.com/ipfs/go-ipfs-files"
13
"github.com/ipfs/go-ipfs/core"
14
"github.com/ipfs/go-ipfs/core/coreapi"
15
"github.com/ipfs/go-ipfs/repo/fsrepo/migrations"
@@ -37,7 +37,7 @@ func addMigrations(ctx context.Context, node *core.IpfsNode, fetcher migrations.
37
if err != nil {
38
return err
39
}
40
- case *migrations.HttpFetcher:
40
+ case *migrations.HttpFetcher, *migrations.RetryFetcher: // https://github.com/ipfs/go-ipfs/issues/8780
41
// Add the downloaded migration files directly
42
if migrations.DownloadDirectory != "" {
43
var paths []string