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 640c682
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/curio/tasks/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func addSealingTasks(
cfg.Seal.BatchSealPipelines,
!cfg.Seal.SingleHasherPerThread,
cfg.Seal.LayerNVMEDevices,
machineHostPort, slotMgr, db, full, stor, si)
machineHostPort, slotMgr, db, full, stor, si, slr)
if err != nil {
return nil, xerrors.Errorf("setting up batch sealer: %w", err)
}
Expand Down
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
5 changes: 3 additions & 2 deletions 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 Expand Up @@ -64,7 +64,7 @@ type SupraSeal struct {
}

func NewSupraSeal(sectorSize string, batchSize, pipelines int, dualHashers bool, nvmeDevices []string, machineHostAndPort string,
slots *slotmgr.SlotMgr, db *harmonydb.DB, api SupraSealNodeAPI, storage *paths.Remote, sindex paths.SectorIndex) (*SupraSeal, error) {
slots *slotmgr.SlotMgr, db *harmonydb.DB, api SupraSealNodeAPI, storage *paths.Remote, sindex paths.SectorIndex, sc *ffi.SealCalls) (*SupraSeal, error) {
var spt abi.RegisteredSealProof
switch sectorSize {
case "32GiB":
Expand Down Expand Up @@ -222,6 +222,7 @@ func NewSupraSeal(sectorSize string, batchSize, pipelines int, dualHashers bool,
api: api,
storage: storage,
sindex: sindex,
sc: sc,

spt: spt,
pipelines: pipelines,
Expand Down

0 comments on commit 640c682

Please sign in to comment.