From 5ced1ab9055197a0ce66dbb9f9f5ff73dad38bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 14 Feb 2020 22:38:30 +0100 Subject: [PATCH] gofmt --- chain/gen/genesis/miners.go | 4 ++-- storage/fpost_run.go | 10 +++++----- storage/sealing/states.go | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/chain/gen/genesis/miners.go b/chain/gen/genesis/miners.go index 8a7931b89..19a76c931 100644 --- a/chain/gen/genesis/miners.go +++ b/chain/gen/genesis/miners.go @@ -47,9 +47,9 @@ func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sroot cid.Cid var maddr address.Address { constructorParams := &power.CreateMinerParams{ - Worker: m.Worker, + Worker: m.Worker, SectorSize: m.SectorSize, - Peer: m.PeerId, + Peer: m.PeerId, } params := mustEnc(constructorParams) diff --git a/storage/fpost_run.go b/storage/fpost_run.go index d389917ec..58bb4a1e5 100644 --- a/storage/fpost_run.go +++ b/storage/fpost_run.go @@ -109,8 +109,8 @@ func (s *FPoStScheduler) checkFaults(ctx context.Context, ssi sectorbuilder.Sort var faultIDs []abi.SectorNumber if len(faults) > 0 { params := &miner.DeclareTemporaryFaultsParams{ - Duration: 900, // TODO: duration is annoying - SectorNumbers:abi.NewBitField(), + Duration: 900, // TODO: duration is annoying + SectorNumbers: abi.NewBitField(), } for _, fault := range faults { @@ -192,8 +192,8 @@ func (s *FPoStScheduler) runPost(ctx context.Context, eps abi.ChainEpoch, ts *ty copy(part, sc.PartialTicket[:]) candidates[i] = abi.PoStCandidate{ RegisteredProof: abi.RegisteredProof_StackedDRG32GiBPoSt, // TODO: build setting - PartialTicket: part, - SectorID: abi.SectorID{ + PartialTicket: part, + SectorID: abi.SectorID{ Miner: abi.ActorID(mid), Number: sc.SectorNum, }, @@ -202,7 +202,7 @@ func (s *FPoStScheduler) runPost(ctx context.Context, eps abi.ChainEpoch, ts *ty } return &abi.OnChainPoStVerifyInfo{ - ProofType: abi.RegisteredProof_StackedDRG32GiBPoSt, // TODO: build setting + ProofType: abi.RegisteredProof_StackedDRG32GiBPoSt, // TODO: build setting Proof: proof, Candidates: candidates, }, nil diff --git a/storage/sealing/states.go b/storage/sealing/states.go index 2ec3dd082..6d7f2822b 100644 --- a/storage/sealing/states.go +++ b/storage/sealing/states.go @@ -99,13 +99,13 @@ func (m *Sealing) handlePreCommitting(ctx statemachine.Context, sector SectorInf } params := &miner.SectorPreCommitInfo{ - Expiration: 0, - SectorNumber: sector.SectorID, + Expiration: 0, + SectorNumber: sector.SectorID, - SealedCID: commcid.ReplicaCommitmentV1ToCID(sector.CommR), - SealEpoch: sector.Ticket.BlockHeight, - DealIDs: nil, // sector.deals(), // TODO: REFACTOR - } + SealedCID: commcid.ReplicaCommitmentV1ToCID(sector.CommR), + SealEpoch: sector.Ticket.BlockHeight, + DealIDs: nil, // sector.deals(), // TODO: REFACTOR + } enc, aerr := actors.SerializeParams(params) if aerr != nil { return ctx.Send(SectorPreCommitFailed{xerrors.Errorf("could not serialize commit sector parameters: %w", aerr)})