Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed Apr 16, 2024
1 parent e777bed commit f8c6252
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 2 deletions.
4 changes: 2 additions & 2 deletions curiosrc/web/api/sector/sector.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"sync"
"time"

"github.com/filecoin-project/go-bitfield"
"github.com/gorilla/mux"
"github.com/samber/lo"

"github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-bitfield"
"github.com/filecoin-project/go-state-types/abi"

"github.com/filecoin-project/lotus/chain/actors/builtin/miner"
Expand Down Expand Up @@ -210,7 +210,7 @@ func (c *cfg) getCachedSectorInfo(w http.ResponseWriter, r *http.Request, maddr
return nil, err
}
activebf := bitfield.New()
for i, _ := range active {
for i := range active {
activebf.Set(uint64(active[i].SectorNumber))
}
infos := make([]sectorInfo, len(onChainInfo))
Expand Down
67 changes: 67 additions & 0 deletions documentation/en/cli-curio.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,77 @@ OPTIONS:

### curio cli log
```
NAME:
curio cli log - Manage logging
USAGE:
curio cli log command [command options] [arguments...]
COMMANDS:
list List log systems
set-level Set log level
help, h Shows a list of commands or help for one command
OPTIONS:
--help, -h show help
```

#### curio cli log list
```
NAME:
curio cli log list - List log systems
USAGE:
curio cli log list [command options] [arguments...]
OPTIONS:
--help, -h show help
```

#### curio cli log set-level
```
NAME:
curio cli log set-level - Set log level
USAGE:
curio cli log set-level [command options] [level]
DESCRIPTION:
Set the log level for logging systems:
The system flag can be specified multiple times.
eg) log set-level --system chain --system chainxchg debug
Available Levels:
debug
info
warn
error
Environment Variables:
GOLOG_LOG_LEVEL - Default log level for all log systems
GOLOG_LOG_FMT - Change output log format (json, nocolor)
GOLOG_FILE - Write logs to file
GOLOG_OUTPUT - Specify whether to output to file, stderr, stdout or a combination, i.e. file+stderr
OPTIONS:
--system value [ --system value ] limit to log system
--help, -h show help
```

### curio cli wait-api
```
NAME:
curio cli wait-api - Wait for Curio api to come online
USAGE:
curio cli wait-api [command options] [arguments...]
OPTIONS:
--timeout value duration to wait till fail (default: 30s)
--help, -h show help
```

## curio run
Expand Down

0 comments on commit f8c6252

Please sign in to comment.