renamed api config
This commit is contained in:
parent
6695a2d936
commit
5b5ae80e30
@ -168,7 +168,7 @@ func GetRawAPIMultiV2(ctx *cli.Context, ainfoCfg []string, version string) ([]Ht
|
||||
var httpHeads []HttpHead
|
||||
|
||||
if len(ainfoCfg) == 0 {
|
||||
return httpHeads, xerrors.Errorf("could not get API info: none configured. \nConsider getting base.toml with './lotus-provider config get base' \nthen adding \n[APIs] \ndaemon = [\"lotusdaemon:1234\"]\n and updating it with './lotus-provider config set base.toml'")
|
||||
return httpHeads, xerrors.Errorf("could not get API info: none configured. \nConsider getting base.toml with './lotus-provider config get base >base.toml' \nthen adding \n[APIs] \n FULLNODE_API_INFO = [\" result_from lotus auth api-info --perm=admin \"]\n and updating it with './lotus-provider config set base.toml'")
|
||||
}
|
||||
for _, i := range ainfoCfg {
|
||||
ainfo := ParseApiInfo(i)
|
||||
|
@ -233,7 +233,7 @@ var runCmd = &cli.Command{
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
full, fullCloser, err := cliutil.GetFullNodeAPIV1LotusProvider(cctx, cfg.Apis.Daemon) // TODO switch this into DB entries.
|
||||
full, fullCloser, err := cliutil.GetFullNodeAPIV1LotusProvider(cctx, cfg.Apis.FULLNODE_API_INFO) // TODO switch this into DB entries.
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -79,8 +79,8 @@ type LotusProviderConfig struct {
|
||||
}
|
||||
|
||||
type ApisConfig struct {
|
||||
// Daemon is the API endpoint for the Lotus daemon.
|
||||
Daemon []string
|
||||
// FULLNODE_API_INFO is the API endpoint for the Lotus daemon.
|
||||
FULLNODE_API_INFO []string
|
||||
}
|
||||
|
||||
type JournalConfig struct {
|
||||
|
Loading…
Reference in New Issue
Block a user