Skip to content

Commit 425cf4c

Browse files
committed
make gen, fix lint
1 parent d4e2999 commit 425cf4c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/ffi/sdr_funcs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"crypto/rand"
66
"encoding/json"
77
"fmt"
8-
"github.com/samber/lo"
98
"io"
109
"os"
1110
"path/filepath"
@@ -15,6 +14,7 @@ import (
1514
"github.com/ipfs/go-cid"
1615
logging "github.com/ipfs/go-log/v2"
1716
"github.com/puzpuzpuz/xsync/v2"
17+
"github.com/samber/lo"
1818
"golang.org/x/xerrors"
1919

2020
"github.com/filecoin-project/curio/harmony/harmonytask"
@@ -75,8 +75,8 @@ func (l *storageProvider) AcquireSector(ctx context.Context, taskID *harmonytask
7575
var ok bool
7676
var resv *StorageReservation
7777
if taskID != nil {
78-
resvs, ok := l.storageReservations.Load(*taskID)
79-
if ok {
78+
resvs, rok := l.storageReservations.Load(*taskID)
79+
if rok {
8080
resv, ok = lo.Find(resvs, func(res *StorageReservation) bool {
8181
return res.SectorRef.ID() == sector.ID
8282
})

tasks/sealsupra/task_supraseal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"encoding/hex"
66
"encoding/json"
77
"fmt"
8-
"github.com/filecoin-project/curio/lib/ffi"
98
"os"
109
"path/filepath"
1110
"time"
@@ -26,6 +25,7 @@ import (
2625
"github.com/filecoin-project/curio/harmony/harmonytask"
2726
"github.com/filecoin-project/curio/harmony/resources"
2827
"github.com/filecoin-project/curio/harmony/taskhelp"
28+
"github.com/filecoin-project/curio/lib/ffi"
2929
"github.com/filecoin-project/curio/lib/hugepageutil"
3030
"github.com/filecoin-project/curio/lib/passcall"
3131
"github.com/filecoin-project/curio/lib/paths"

0 commit comments

Comments
 (0)