Skip to content

Commit

Permalink
chore: lint: fix lint errors with new linting config
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg authored and rjan90 committed May 24, 2024
1 parent 8a2b8db commit 5212883
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/curio/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/filecoin-project/lotus/node/config"
)

var baseText string = `
var baseText = `
[Subsystems]
# EnableWindowPost enables window post to be executed on this curio instance. Each machine in the cluster
# with WindowPoSt enabled will also participate in the window post scheduler. It is possible to have multiple
Expand Down
1 change: 0 additions & 1 deletion curiosrc/market/lmrpc/lmrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ func ServeCurioMarketRPC(db *harmonydb.DB, full api.FullNode, maddr address.Addr
}
}()
}

pieceIDUrl := url.URL{
Scheme: "pieceref",
Opaque: fmt.Sprintf("%d", refID),
Expand Down
4 changes: 2 additions & 2 deletions curiosrc/window/compute_do.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func (t *WdPostTask) DoPartition(ctx context.Context, ts *types.TipSet, maddr ad
Proofs: postOut,
ChallengedSectors: sinfos,
Prover: abi.ActorID(mid),
}); err != nil {
}); err != nil { // revive:disable-line:empty-block
/*log.Errorw("window post verification failed", "post", postOut, "error", err)
time.Sleep(5 * time.Second)
continue todo retry loop */
Expand Down Expand Up @@ -337,7 +337,7 @@ func (t *WdPostTask) sectorsForProof(ctx context.Context, maddr address.Address,
}

func (t *WdPostTask) generateWindowPoSt(ctx context.Context, ppt abi.RegisteredPoStProof, minerID abi.ActorID, sectorInfo []proof.ExtendedSectorInfo, randomness abi.PoStRandomness) ([]proof.PoStProof, []abi.SectorID, error) {
var retErr error = nil
var retErr error
randomness[31] &= 0x3f

out := make([]proof.PoStProof, 0)
Expand Down
2 changes: 1 addition & 1 deletion curiosrc/winning/winning_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ func (t *WinPostTask) computeTicket(ctx context.Context, maddr address.Address,

func randTimeOffset(width time.Duration) time.Duration {
buf := make([]byte, 8)
rand.Reader.Read(buf) //nolint:errcheck
_, _ = rand.Reader.Read(buf)
val := time.Duration(binary.BigEndian.Uint64(buf) % uint64(width))

return val - (width / 2)
Expand Down

0 comments on commit 5212883

Please sign in to comment.