fix lint; run gen.
This commit is contained in:
parent
6a244ee8f0
commit
07ffbf85e4
@ -36,7 +36,7 @@ func TestWrapperAcquireRecovery(t *testing.T) {
|
|||||||
}, mockLotusMount{})
|
}, mockLotusMount{})
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
defer dagst.Close()
|
defer dagst.Close() //nolint:errcheck
|
||||||
|
|
||||||
// Return an error from acquire shard the first time
|
// Return an error from acquire shard the first time
|
||||||
acquireShardErr := make(chan error, 1)
|
acquireShardErr := make(chan error, 1)
|
||||||
@ -89,7 +89,7 @@ func TestWrapperBackground(t *testing.T) {
|
|||||||
}, mockLotusMount{})
|
}, mockLotusMount{})
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
defer dagst.Close()
|
defer dagst.Close() //nolint:errcheck
|
||||||
|
|
||||||
// Create a mock DAG store in place of the real DAG store
|
// Create a mock DAG store in place of the real DAG store
|
||||||
mock := &mockDagStore{
|
mock := &mockDagStore{
|
||||||
|
@ -177,11 +177,12 @@ subsystem.
|
|||||||
Default value: 100.`,
|
Default value: 100.`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "GCIntervalMillis",
|
Name: "GCInterval",
|
||||||
Type: "int",
|
Type: "Duration",
|
||||||
|
|
||||||
Comment: `The number of milliseconds between calls to periodic dagstore GC.
|
Comment: `The time between calls to periodic dagstore GC, in time.Duration string
|
||||||
Default value: 60000 (60 seconds = 1 minute).`,
|
representation, e.g. 1m, 5m, 1h.
|
||||||
|
Default value: 1 minute.`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"DealmakingConfig": []DocField{
|
"DealmakingConfig": []DocField{
|
||||||
|
@ -6,7 +6,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/filecoin-project/go-fil-markets/stores"
|
"github.com/filecoin-project/go-fil-markets/stores"
|
||||||
"github.com/filecoin-project/lotus/build"
|
|
||||||
"github.com/ipfs/go-blockservice"
|
"github.com/ipfs/go-blockservice"
|
||||||
"github.com/ipfs/go-cid"
|
"github.com/ipfs/go-cid"
|
||||||
"github.com/ipfs/go-cidutil"
|
"github.com/ipfs/go-cidutil"
|
||||||
@ -20,6 +19,8 @@ import (
|
|||||||
"github.com/ipld/go-car/v2"
|
"github.com/ipld/go-car/v2"
|
||||||
"github.com/ipld/go-car/v2/blockstore"
|
"github.com/ipld/go-car/v2/blockstore"
|
||||||
"golang.org/x/xerrors"
|
"golang.org/x/xerrors"
|
||||||
|
|
||||||
|
"github.com/filecoin-project/lotus/build"
|
||||||
)
|
)
|
||||||
|
|
||||||
// doImport takes a standard file (src), forms a UnixFS DAG, and writes a
|
// doImport takes a standard file (src), forms a UnixFS DAG, and writes a
|
||||||
@ -38,7 +39,7 @@ func (a *API) doImport(ctx context.Context, src string, dst string) (cid.Cid, er
|
|||||||
}
|
}
|
||||||
_ = f.Close() // close; we only want the path.
|
_ = f.Close() // close; we only want the path.
|
||||||
tmp := f.Name()
|
tmp := f.Name()
|
||||||
defer os.Remove(tmp)
|
defer os.Remove(tmp) //nolint:errcheck
|
||||||
|
|
||||||
// Step 1. Compute the UnixFS DAG and write it to a CARv2 file to get
|
// Step 1. Compute the UnixFS DAG and write it to a CARv2 file to get
|
||||||
// the root CID of the DAG.
|
// the root CID of the DAG.
|
||||||
|
Loading…
Reference in New Issue
Block a user