diff --git a/lib/ffi/sdr_funcs.go b/lib/ffi/sdr_funcs.go index 4aa2599f1..538a02d5f 100644 --- a/lib/ffi/sdr_funcs.go +++ b/lib/ffi/sdr_funcs.go @@ -5,7 +5,6 @@ import ( "crypto/rand" "encoding/json" "fmt" - "github.com/samber/lo" "io" "os" "path/filepath" @@ -15,6 +14,7 @@ import ( "github.com/ipfs/go-cid" logging "github.com/ipfs/go-log/v2" "github.com/puzpuzpuz/xsync/v2" + "github.com/samber/lo" "golang.org/x/xerrors" "github.com/filecoin-project/curio/harmony/harmonytask" @@ -75,8 +75,8 @@ func (l *storageProvider) AcquireSector(ctx context.Context, taskID *harmonytask var ok bool var resv *StorageReservation if taskID != nil { - resvs, ok := l.storageReservations.Load(*taskID) - if ok { + resvs, rok := l.storageReservations.Load(*taskID) + if rok { resv, ok = lo.Find(resvs, func(res *StorageReservation) bool { return res.SectorRef.ID() == sector.ID }) diff --git a/tasks/sealsupra/task_supraseal.go b/tasks/sealsupra/task_supraseal.go index e37ac13e9..ee2b90e44 100644 --- a/tasks/sealsupra/task_supraseal.go +++ b/tasks/sealsupra/task_supraseal.go @@ -5,7 +5,6 @@ import ( "encoding/hex" "encoding/json" "fmt" - "github.com/filecoin-project/curio/lib/ffi" "os" "path/filepath" "time" @@ -26,6 +25,7 @@ import ( "github.com/filecoin-project/curio/harmony/harmonytask" "github.com/filecoin-project/curio/harmony/resources" "github.com/filecoin-project/curio/harmony/taskhelp" + "github.com/filecoin-project/curio/lib/ffi" "github.com/filecoin-project/curio/lib/hugepageutil" "github.com/filecoin-project/curio/lib/passcall" "github.com/filecoin-project/curio/lib/paths"