Appease the linter

This commit is contained in:
Łukasz Magiera 2020-06-24 01:00:32 +02:00
parent d7bb284e57
commit 001d4ab002

View File

@ -15,7 +15,7 @@ import (
) )
var actorCmd = &cli.Command{ var actorCmd = &cli.Command{
Name: "actor", Name: "actor",
Usage: "manipulate the miner actor", Usage: "manipulate the miner actor",
Subcommands: []*cli.Command{ Subcommands: []*cli.Command{
actorSetAddrsCmd, actorSetAddrsCmd,
@ -33,7 +33,7 @@ var actorSetAddrsCmd = &cli.Command{
}, },
}, },
Action: func(cctx *cli.Context) error { Action: func(cctx *cli.Context) error {
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx) nodeAPI, closer, err := lcli.GetStorageMinerAPI(cctx)
if err != nil { if err != nil {
return err return err
} }
@ -57,7 +57,7 @@ var actorSetAddrsCmd = &cli.Command{
addrs = append(addrs, maddr.Bytes()) addrs = append(addrs, maddr.Bytes())
} }
maddr, err := nodeApi.ActorAddress(ctx) maddr, err := nodeAPI.ActorAddress(ctx)
if err != nil { if err != nil {
return err return err
} }
@ -67,7 +67,7 @@ var actorSetAddrsCmd = &cli.Command{
return err return err
} }
params, err := actors.SerializeParams(&miner.ChangeMultiaddrsParams{addrs}) params, err := actors.SerializeParams(&miner.ChangeMultiaddrsParams{NewMultiaddrs: addrs})
if err != nil { if err != nil {
return err return err
} }
@ -83,6 +83,9 @@ var actorSetAddrsCmd = &cli.Command{
Method: 18, Method: 18,
Params: params, Params: params,
}) })
if err != nil {
return err
}
fmt.Printf("Requested multiaddrs change in message %s\n", smsg.Cid()) fmt.Printf("Requested multiaddrs change in message %s\n", smsg.Cid())
return nil return nil