fix lint errors.
This commit is contained in:
parent
2e30891005
commit
932767d014
@ -65,7 +65,6 @@ func (m *lotusAccessor) IsUnsealed(ctx context.Context, pieceCid cid.Cid) (bool,
|
|||||||
return false, xerrors.Errorf("failed while waiting for accessor to start: %w", err)
|
return false, xerrors.Errorf("failed while waiting for accessor to start: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pieceInfo piecestore.PieceInfo
|
var pieceInfo piecestore.PieceInfo
|
||||||
err = m.throttle.Do(ctx, func(ctx context.Context) (err error) {
|
err = m.throttle.Do(ctx, func(ctx context.Context) (err error) {
|
||||||
pieceInfo, err = m.pieceStore.GetPieceInfo(pieceCid)
|
pieceInfo, err = m.pieceStore.GetPieceInfo(pieceCid)
|
||||||
|
@ -194,7 +194,7 @@ func getPieceStore(t *testing.T) piecestore.PieceStore {
|
|||||||
|
|
||||||
err = ps.Start(context.Background())
|
err = ps.Start(context.Background())
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
<- ch
|
<-ch
|
||||||
return ps
|
return ps
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,7 +92,8 @@ func TestWrapperBackground(t *testing.T) {
|
|||||||
w.dagStore = mock
|
w.dagStore = mock
|
||||||
|
|
||||||
// Start up the wrapper
|
// Start up the wrapper
|
||||||
w.Start(ctx)
|
err = w.Start(ctx)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
// Expect GC to be called automatically
|
// Expect GC to be called automatically
|
||||||
tctx, cancel := context.WithTimeout(ctx, time.Second)
|
tctx, cancel := context.WithTimeout(ctx, time.Second)
|
||||||
|
Loading…
Reference in New Issue
Block a user