From e6f3444eb2739760219d1624d57d9259ab7935fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 20 Jul 2020 14:31:39 +0200 Subject: [PATCH] mod tidy, gofmt --- api/api_full.go | 2 +- api/apistruct/struct.go | 2 +- chain/gen/genesis/genesis.go | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/api/api_full.go b/api/api_full.go index 9821b4557..895c1e65b 100644 --- a/api/api_full.go +++ b/api/api_full.go @@ -375,7 +375,7 @@ type FileRef struct { type MinerSectors struct { Sectors uint64 - Active uint64 + Active uint64 } type SectorExpiration struct { diff --git a/api/apistruct/struct.go b/api/apistruct/struct.go index 326e98453..d5efd5266 100644 --- a/api/apistruct/struct.go +++ b/api/apistruct/struct.go @@ -127,7 +127,7 @@ type FullNodeStruct struct { StateNetworkName func(context.Context) (dtypes.NetworkName, error) `perm:"read"` StateMinerSectors func(context.Context, address.Address, *abi.BitField, bool, types.TipSetKey) ([]*api.ChainSectorInfo, error) `perm:"read"` - StateMinerActiveSectors func(context.Context, address.Address, types.TipSetKey) ([]*api.ChainSectorInfo, error) `perm:"read"` + StateMinerActiveSectors func(context.Context, address.Address, types.TipSetKey) ([]*api.ChainSectorInfo, error) `perm:"read"` StateMinerProvingDeadline func(context.Context, address.Address, types.TipSetKey) (*miner.DeadlineInfo, error) `perm:"read"` StateMinerPower func(context.Context, address.Address, types.TipSetKey) (*api.MinerPower, error) `perm:"read"` StateMinerInfo func(context.Context, address.Address, types.TipSetKey) (api.MinerInfo, error) `perm:"read"` diff --git a/chain/gen/genesis/genesis.go b/chain/gen/genesis/genesis.go index ebacf51cb..84ff25a6a 100644 --- a/chain/gen/genesis/genesis.go +++ b/chain/gen/genesis/genesis.go @@ -208,7 +208,7 @@ func MakeInitialStateTree(ctx context.Context, bs bstore.Blockstore, template ge // var newAddress address.Address - if (info.Type == genesis.TAccount) { + if info.Type == genesis.TAccount { var ainfo genesis.AccountMeta if err := json.Unmarshal(info.Meta, &ainfo); err != nil { return nil, xerrors.Errorf("unmarshaling account meta: %w", err) @@ -225,7 +225,7 @@ func MakeInitialStateTree(ctx context.Context, bs bstore.Blockstore, template ge if err != nil { return nil, xerrors.Errorf("setting account from actmap: %w", err) } - } else if (info.Type == genesis.TMultisig) { + } else if info.Type == genesis.TMultisig { var ainfo genesis.MultisigMeta if err := json.Unmarshal(info.Meta, &ainfo); err != nil { return nil, xerrors.Errorf("unmarshaling account meta: %w", err) @@ -237,12 +237,12 @@ func MakeInitialStateTree(ctx context.Context, bs bstore.Blockstore, template ge } st, err := cst.Put(ctx, &multisig.State{ - Signers: ainfo.Signers, + Signers: ainfo.Signers, NumApprovalsThreshold: uint64(ainfo.Threshold), - StartEpoch: abi.ChainEpoch(ainfo.VestingStart), - UnlockDuration: abi.ChainEpoch(ainfo.VestingDuration), - PendingTxns: pending, - InitialBalance: info.Balance, + StartEpoch: abi.ChainEpoch(ainfo.VestingStart), + UnlockDuration: abi.ChainEpoch(ainfo.VestingDuration), + PendingTxns: pending, + InitialBalance: info.Balance, }) if err != nil { return nil, err