fix lint errors.

This commit is contained in:
Raúl Kripalani 2021-07-30 15:25:18 +01:00
parent 2e30891005
commit 932767d014
4 changed files with 8 additions and 8 deletions

View File

@ -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)
}
var pieceInfo piecestore.PieceInfo
err = m.throttle.Do(ctx, func(ctx context.Context) (err error) {
pieceInfo, err = m.pieceStore.GetPieceInfo(pieceCid)

View File

@ -194,7 +194,7 @@ func getPieceStore(t *testing.T) piecestore.PieceStore {
err = ps.Start(context.Background())
require.NoError(t, err)
<- ch
<-ch
return ps
}

View File

@ -92,7 +92,8 @@ func TestWrapperBackground(t *testing.T) {
w.dagStore = mock
// Start up the wrapper
w.Start(ctx)
err = w.Start(ctx)
require.NoError(t, err)
// Expect GC to be called automatically
tctx, cancel := context.WithTimeout(ctx, time.Second)