fix lint; run gen.
This commit is contained in:
parent
6a244ee8f0
commit
07ffbf85e4
@ -36,7 +36,7 @@ func TestWrapperAcquireRecovery(t *testing.T) {
|
||||
}, mockLotusMount{})
|
||||
require.NoError(t, err)
|
||||
|
||||
defer dagst.Close()
|
||||
defer dagst.Close() //nolint:errcheck
|
||||
|
||||
// Return an error from acquire shard the first time
|
||||
acquireShardErr := make(chan error, 1)
|
||||
@ -89,7 +89,7 @@ func TestWrapperBackground(t *testing.T) {
|
||||
}, mockLotusMount{})
|
||||
require.NoError(t, err)
|
||||
|
||||
defer dagst.Close()
|
||||
defer dagst.Close() //nolint:errcheck
|
||||
|
||||
// Create a mock DAG store in place of the real DAG store
|
||||
mock := &mockDagStore{
|
||||
|
@ -177,11 +177,12 @@ subsystem.
|
||||
Default value: 100.`,
|
||||
},
|
||||
{
|
||||
Name: "GCIntervalMillis",
|
||||
Type: "int",
|
||||
Name: "GCInterval",
|
||||
Type: "Duration",
|
||||
|
||||
Comment: `The number of milliseconds between calls to periodic dagstore GC.
|
||||
Default value: 60000 (60 seconds = 1 minute).`,
|
||||
Comment: `The time between calls to periodic dagstore GC, in time.Duration string
|
||||
representation, e.g. 1m, 5m, 1h.
|
||||
Default value: 1 minute.`,
|
||||
},
|
||||
},
|
||||
"DealmakingConfig": []DocField{
|
||||
|
@ -6,7 +6,6 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/filecoin-project/go-fil-markets/stores"
|
||||
"github.com/filecoin-project/lotus/build"
|
||||
"github.com/ipfs/go-blockservice"
|
||||
"github.com/ipfs/go-cid"
|
||||
"github.com/ipfs/go-cidutil"
|
||||
@ -20,6 +19,8 @@ import (
|
||||
"github.com/ipld/go-car/v2"
|
||||
"github.com/ipld/go-car/v2/blockstore"
|
||||
"golang.org/x/xerrors"
|
||||
|
||||
"github.com/filecoin-project/lotus/build"
|
||||
)
|
||||
|
||||
// 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.
|
||||
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
|
||||
// the root CID of the DAG.
|
||||
|
Loading…
Reference in New Issue
Block a user