Skip to content

Commit

Permalink
make gen, fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Nov 15, 2024
1 parent d4e2999 commit 425cf4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/ffi/sdr_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"crypto/rand"
"encoding/json"
"fmt"
"github.com/samber/lo"
"io"
"os"
"path/filepath"
Expand All @@ -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"
Expand Down Expand Up @@ -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
})
Expand Down
2 changes: 1 addition & 1 deletion tasks/sealsupra/task_supraseal.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
"github.com/filecoin-project/curio/lib/ffi"
"os"
"path/filepath"
"time"
Expand All @@ -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"
Expand Down

0 comments on commit 425cf4c

Please sign in to comment.