From 04658e1cae27781599592558925fa52a102681f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 25 May 2021 16:26:59 +0200 Subject: [PATCH] fix lint --- extern/sector-storage/mock/mock.go | 10 ---------- node/config/def.go | 14 +++++++------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/extern/sector-storage/mock/mock.go b/extern/sector-storage/mock/mock.go index eac75d176..a622f8ccb 100644 --- a/extern/sector-storage/mock/mock.go +++ b/extern/sector-storage/mock/mock.go @@ -522,11 +522,6 @@ func (m mockVerifProver) VerifyAggregateSeals(aggregate proof5.AggregateSealVeri } } - var sis []abi.SectorNumber - for _, info := range aggregate.Infos { - sis = append(sis, info.Number) - } - return bytes.Equal(aggregate.Proof, out), nil } @@ -538,11 +533,6 @@ func (m mockVerifProver) AggregateSealProofs(aggregateInfo proof5.AggregateSealV } } - var sis []abi.SectorNumber - for _, info := range aggregateInfo.Infos { - sis = append(sis, info.Number) - } - return out, nil } diff --git a/node/config/def.go b/node/config/def.go index 1c82e9b17..988b0a6c9 100644 --- a/node/config/def.go +++ b/node/config/def.go @@ -85,22 +85,22 @@ type SealingConfig struct { AlwaysKeepUnsealedCopy bool // enable / disable precommit batching (takes effect after nv13) - BatchPreCommits bool + BatchPreCommits bool // maximum precommit batch size - batches will be sent immediately above this size - MaxPreCommitBatch int - MinPreCommitBatch int + MaxPreCommitBatch int + MinPreCommitBatch int // how long to wait before submitting a batch after crossing the minimum batch size - PreCommitBatchWait Duration + PreCommitBatchWait Duration // time buffer for forceful batch submission before sectors in batch would start expiring PreCommitBatchSlack Duration // enable / disable commit aggregation (takes effect after nv13) AggregateCommits bool // maximum batched commit size - batches will be sent immediately above this size - MinCommitBatch int - MaxCommitBatch int + MinCommitBatch int + MaxCommitBatch int // how long to wait before submitting a batch after crossing the minimum batch size - CommitBatchWait Duration + CommitBatchWait Duration // time buffer for forceful batch submission before sectors in batch would start expiring CommitBatchSlack Duration