Skip to content

Commit

Permalink
Build on go < 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Apr 14, 2021
1 parent 3be7d38 commit 24c4098
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/ipfs/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"net/url"
"os"
"path/filepath"
Expand Down Expand Up @@ -202,7 +203,7 @@ func addMigrationPaths(ctx context.Context, node *core.IpfsNode, peerInfo peer.A
if !ok {
return fmt.Errorf("not a file node: %q", ipfsPath)
}
io.Copy(io.Discard, fnd)
io.Copy(ioutil.Discard, fnd)
nd.Close()
fmt.Printf("Added migration file: %q\n", ipfsPath)
}
Expand Down

0 comments on commit 24c4098

Please sign in to comment.