pacify the linter.
This commit is contained in:
parent
d0353d1ef1
commit
2a2b442aae
@ -95,6 +95,7 @@ func (m *lotusAccessor) FetchUnsealedPiece(ctx context.Context, pieceCid cid.Cid
|
|||||||
// We want to throttle this path, as these copies will be downloaded
|
// We want to throttle this path, as these copies will be downloaded
|
||||||
// immediately from the storage cluster without any unsealing
|
// immediately from the storage cluster without any unsealing
|
||||||
// necessary.
|
// necessary.
|
||||||
|
deal := deal // calm the linter
|
||||||
err := m.throttle.Do(ctx, func(ctx context.Context) (err error) {
|
err := m.throttle.Do(ctx, func(ctx context.Context) (err error) {
|
||||||
// UnsealSector will NOT unseal a sector if we already have an unsealed copy lying around.
|
// UnsealSector will NOT unseal a sector if we already have an unsealed copy lying around.
|
||||||
reader, err = m.rm.UnsealSector(ctx, deal.SectorID, deal.Offset.Unpadded(), deal.Length.Unpadded())
|
reader, err = m.rm.UnsealSector(ctx, deal.SectorID, deal.Offset.Unpadded(), deal.Length.Unpadded())
|
||||||
|
Loading…
Reference in New Issue
Block a user