gofmt
This commit is contained in:
parent
09f9f871a3
commit
8ac495723e
@ -323,8 +323,8 @@ type StorageMinerStruct struct {
|
|||||||
ReturnReadPiece func(ctx context.Context, callID storiface.CallID, ok bool, err string) error `perm:"admin" retry:"true"`
|
ReturnReadPiece func(ctx context.Context, callID storiface.CallID, ok bool, err string) error `perm:"admin" retry:"true"`
|
||||||
ReturnFetch func(ctx context.Context, callID storiface.CallID, err string) error `perm:"admin" retry:"true"`
|
ReturnFetch func(ctx context.Context, callID storiface.CallID, err string) error `perm:"admin" retry:"true"`
|
||||||
|
|
||||||
SealingSchedDiag func(context.Context, bool) (interface{}, error) `perm:"admin"`
|
SealingSchedDiag func(context.Context, bool) (interface{}, error) `perm:"admin"`
|
||||||
SealingAbort func(ctx context.Context, call storiface.CallID) error `perm:"admin"`
|
SealingAbort func(ctx context.Context, call storiface.CallID) error `perm:"admin"`
|
||||||
|
|
||||||
StorageList func(context.Context) (map[stores.ID][]stores.Decl, error) `perm:"admin"`
|
StorageList func(context.Context) (map[stores.ID][]stores.Decl, error) `perm:"admin"`
|
||||||
StorageLocal func(context.Context) (map[stores.ID]string, error) `perm:"admin"`
|
StorageLocal func(context.Context) (map[stores.ID]string, error) `perm:"admin"`
|
||||||
|
@ -129,7 +129,7 @@ var sealingJobsCmd = &cli.Command{
|
|||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.BoolFlag{Name: "color"},
|
&cli.BoolFlag{Name: "color"},
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "show-ret-done",
|
Name: "show-ret-done",
|
||||||
Usage: "show returned but not consumed calls",
|
Usage: "show returned but not consumed calls",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -263,8 +263,8 @@ var sealingSchedDiagCmd = &cli.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
var sealingAbortCmd = &cli.Command{
|
var sealingAbortCmd = &cli.Command{
|
||||||
Name: "abort",
|
Name: "abort",
|
||||||
Usage: "Abort a running job",
|
Usage: "Abort a running job",
|
||||||
ArgsUsage: "[call id]",
|
ArgsUsage: "[call id]",
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
if cctx.Args().Len() != 1 {
|
if cctx.Args().Len() != 1 {
|
||||||
@ -289,6 +289,7 @@ var sealingAbortCmd = &cli.Command{
|
|||||||
for _, workerJobs := range jobs {
|
for _, workerJobs := range jobs {
|
||||||
for _, j := range workerJobs {
|
for _, j := range workerJobs {
|
||||||
if strings.HasPrefix(j.ID.ID.String(), cctx.Args().First()) {
|
if strings.HasPrefix(j.ID.ID.String(), cctx.Args().First()) {
|
||||||
|
j := j
|
||||||
job = &j
|
job = &j
|
||||||
break outer
|
break outer
|
||||||
}
|
}
|
||||||
|
7
extern/sector-storage/manager.go
vendored
7
extern/sector-storage/manager.go
vendored
@ -700,22 +700,21 @@ func (m *Manager) SchedDiag(ctx context.Context, doSched bool) (interface{}, err
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
si, err := m.sched.Info(ctx)
|
si, err := m.sched.Info(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
type SchedInfo interface{}
|
type SchedInfo interface{}
|
||||||
i := struct{
|
i := struct {
|
||||||
SchedInfo
|
SchedInfo
|
||||||
|
|
||||||
ReturnedWork []string
|
ReturnedWork []string
|
||||||
Waiting []string
|
Waiting []string
|
||||||
|
|
||||||
CallToWork map[string]string
|
CallToWork map[string]string
|
||||||
|
|
||||||
EarlyRet []string
|
EarlyRet []string
|
||||||
|
|
||||||
}{
|
}{
|
||||||
SchedInfo: si,
|
SchedInfo: si,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user