Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Nov 26, 2020
1 parent bfb5bad commit a6658a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/apistruct/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ type WorkerStruct struct {
ReadPiece func(context.Context, io.Writer, storage.SectorRef, storiface.UnpaddedByteIndex, abi.UnpaddedPieceSize) (storiface.CallID, error) `perm:"admin"`
Fetch func(context.Context, storage.SectorRef, storiface.SectorFileType, storiface.PathType, storiface.AcquireMode) (storiface.CallID, error) `perm:"admin"`

DisableTask func(ctx context.Context, tt sealtasks.TaskType) error
EnableTask func(ctx context.Context, tt sealtasks.TaskType) error
DisableTask func(ctx context.Context, tt sealtasks.TaskType) error `perm:"admin"`
EnableTask func(ctx context.Context, tt sealtasks.TaskType) error `perm:"admin"`

Remove func(ctx context.Context, sector abi.SectorID) error `perm:"admin"`
StorageAddLocal func(ctx context.Context, path string) error `perm:"admin"`
Expand Down
4 changes: 2 additions & 2 deletions documentation/en/api-methods-worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ Response:
### DisableTask
There are not yet any comments for this method.

Perms:
Perms: admin

Inputs:
```json
Expand All @@ -208,7 +208,7 @@ Response: `{}`
### EnableTask
There are not yet any comments for this method.

Perms:
Perms: admin

Inputs:
```json
Expand Down

0 comments on commit a6658a8

Please sign in to comment.