lint, docsgen

This commit is contained in:
Łukasz Magiera 2020-09-11 10:55:10 +02:00
parent 72eb17d314
commit aeb3437a9f
2 changed files with 4 additions and 2 deletions

View File

@ -40,7 +40,7 @@ var exportChainCmd = &cli.Command{
},
Action: func(cctx *cli.Context) error {
if !cctx.Args().Present() {
return lcli.ShowHelp(cctx, fmt.Errorf("must specifiy file name to write export to"))
return lcli.ShowHelp(cctx, fmt.Errorf("must specify file name to write export to"))
}
ctx := context.TODO()
@ -69,7 +69,7 @@ var exportChainCmd = &cli.Command{
return xerrors.Errorf("opening the output file: %w", err)
}
defer fi.Close()
defer fi.Close() //nolint:errcheck
ds, err := lr.Datastore("/chain")
if err != nil {

View File

@ -284,6 +284,7 @@ ChainExport returns a stream of bytes with CAR dump of chain data.
The exported chain data includes the header chain from the given tipset
back to genesis, the entire genesis state, and the most recent 'nroots'
state trees.
If oldmsgskip is set, messages from before the requested roots are also not included.
Perms: read
@ -292,6 +293,7 @@ Inputs:
```json
[
10101,
true,
[
{
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"