gofmt
This commit is contained in:
parent
10362ab9b4
commit
c133a37b7c
@ -123,11 +123,11 @@ type SectorInfo struct {
|
|||||||
|
|
||||||
// On Chain Info
|
// On Chain Info
|
||||||
SealProof abi.RegisteredSealProof // The seal proof type implies the PoSt proof/s
|
SealProof abi.RegisteredSealProof // The seal proof type implies the PoSt proof/s
|
||||||
Activation abi.ChainEpoch // Epoch during which the sector proof was accepted
|
Activation abi.ChainEpoch // Epoch during which the sector proof was accepted
|
||||||
Expiration abi.ChainEpoch // Epoch during which the sector expires
|
Expiration abi.ChainEpoch // Epoch during which the sector expires
|
||||||
DealWeight abi.DealWeight // Integral of active deals over sector lifetime
|
DealWeight abi.DealWeight // Integral of active deals over sector lifetime
|
||||||
VerifiedDealWeight abi.DealWeight // Integral of active verified deals over sector lifetime
|
VerifiedDealWeight abi.DealWeight // Integral of active verified deals over sector lifetime
|
||||||
InitialPledge abi.TokenAmount // Pledge collected to commit this sector
|
InitialPledge abi.TokenAmount // Pledge collected to commit this sector
|
||||||
// Expiration Info
|
// Expiration Info
|
||||||
OnTime abi.ChainEpoch
|
OnTime abi.ChainEpoch
|
||||||
// non-zero if sector is faulty, epoch at which it will be permanently
|
// non-zero if sector is faulty, epoch at which it will be permanently
|
||||||
|
@ -216,16 +216,16 @@ type StorageMinerStruct struct {
|
|||||||
PledgeSector func(context.Context) error `perm:"write"`
|
PledgeSector func(context.Context) error `perm:"write"`
|
||||||
|
|
||||||
SectorsStatus func(ctx context.Context, sid abi.SectorNumber, showOnChainInfo bool) (api.SectorInfo, error) `perm:"read"`
|
SectorsStatus func(ctx context.Context, sid abi.SectorNumber, showOnChainInfo bool) (api.SectorInfo, error) `perm:"read"`
|
||||||
SectorsList func(context.Context) ([]abi.SectorNumber, error) `perm:"read"`
|
SectorsList func(context.Context) ([]abi.SectorNumber, error) `perm:"read"`
|
||||||
SectorsRefs func(context.Context) (map[string][]api.SealedRef, error) `perm:"read"`
|
SectorsRefs func(context.Context) (map[string][]api.SealedRef, error) `perm:"read"`
|
||||||
SectorStartSealing func(context.Context, abi.SectorNumber) error `perm:"write"`
|
SectorStartSealing func(context.Context, abi.SectorNumber) error `perm:"write"`
|
||||||
SectorSetSealDelay func(context.Context, time.Duration) error `perm:"write"`
|
SectorSetSealDelay func(context.Context, time.Duration) error `perm:"write"`
|
||||||
SectorGetSealDelay func(context.Context) (time.Duration, error) `perm:"read"`
|
SectorGetSealDelay func(context.Context) (time.Duration, error) `perm:"read"`
|
||||||
SectorSetExpectedSealDuration func(context.Context, time.Duration) error `perm:"write"`
|
SectorSetExpectedSealDuration func(context.Context, time.Duration) error `perm:"write"`
|
||||||
SectorGetExpectedSealDuration func(context.Context) (time.Duration, error) `perm:"read"`
|
SectorGetExpectedSealDuration func(context.Context) (time.Duration, error) `perm:"read"`
|
||||||
SectorsUpdate func(context.Context, abi.SectorNumber, api.SectorState) error `perm:"admin"`
|
SectorsUpdate func(context.Context, abi.SectorNumber, api.SectorState) error `perm:"admin"`
|
||||||
SectorRemove func(context.Context, abi.SectorNumber) error `perm:"admin"`
|
SectorRemove func(context.Context, abi.SectorNumber) error `perm:"admin"`
|
||||||
SectorMarkForUpgrade func(ctx context.Context, id abi.SectorNumber) error `perm:"admin"`
|
SectorMarkForUpgrade func(ctx context.Context, id abi.SectorNumber) error `perm:"admin"`
|
||||||
|
|
||||||
WorkerConnect func(context.Context, string) error `perm:"admin"` // TODO: worker perm
|
WorkerConnect func(context.Context, string) error `perm:"admin"` // TODO: worker perm
|
||||||
WorkerStats func(context.Context) (map[uint64]storiface.WorkerStats, error) `perm:"admin"`
|
WorkerStats func(context.Context) (map[uint64]storiface.WorkerStats, error) `perm:"admin"`
|
||||||
|
@ -174,7 +174,6 @@ func TestSenondDealRetrieval(t *testing.T, b APIBuilder, blocktime time.Duration
|
|||||||
rand.New(rand.NewSource(int64(3))).Read(data1)
|
rand.New(rand.NewSource(int64(3))).Read(data1)
|
||||||
r := bytes.NewReader(data1)
|
r := bytes.NewReader(data1)
|
||||||
|
|
||||||
|
|
||||||
fcid1, err := client.ClientImportLocal(ctx, r)
|
fcid1, err := client.ClientImportLocal(ctx, r)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
@ -147,14 +147,14 @@ func (sm *StorageMinerAPI) SectorsStatus(ctx context.Context, sid abi.SectorNumb
|
|||||||
LastErr: info.LastErr,
|
LastErr: info.LastErr,
|
||||||
Log: log,
|
Log: log,
|
||||||
// on chain info
|
// on chain info
|
||||||
SealProof: 0,
|
SealProof: 0,
|
||||||
Activation: 0,
|
Activation: 0,
|
||||||
Expiration: 0,
|
Expiration: 0,
|
||||||
DealWeight: big.Zero(),
|
DealWeight: big.Zero(),
|
||||||
VerifiedDealWeight: big.Zero(),
|
VerifiedDealWeight: big.Zero(),
|
||||||
InitialPledge: big.Zero(),
|
InitialPledge: big.Zero(),
|
||||||
OnTime: 0,
|
OnTime: 0,
|
||||||
Early: 0,
|
Early: 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
if !showOnChainInfo {
|
if !showOnChainInfo {
|
||||||
|
Loading…
Reference in New Issue
Block a user