Skip to content

Commit

Permalink
fix: rename PortalHistoryConfig to Config
Browse files Browse the repository at this point in the history
  • Loading branch information
fearlessfe authored and GrapeBaBa committed Mar 19, 2024
1 parent 0b6714d commit 37b4382
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/shisui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/urfave/cli/v2"
)

type PortalHistoryConfig struct {
type Config struct {
Protocol *discover.PortalProtocolConfig
PrivateKey *ecdsa.PrivateKey
RpcAddr string
Expand Down Expand Up @@ -101,8 +101,8 @@ func shisui(ctx *cli.Context) error {
return nil
}

func getPortalHistoryConfig(ctx *cli.Context) (*PortalHistoryConfig, error) {
config := &PortalHistoryConfig{
func getPortalHistoryConfig(ctx *cli.Context) (*Config, error) {
config := &Config{
Protocol: discover.DefaultPortalProtocolConfig(),
}
err := setPrivateKey(ctx, config)
Expand Down Expand Up @@ -145,7 +145,7 @@ func getPortalHistoryConfig(ctx *cli.Context) (*PortalHistoryConfig, error) {
return config, nil
}

func setPrivateKey(ctx *cli.Context, config *PortalHistoryConfig) error {
func setPrivateKey(ctx *cli.Context, config *Config) error {
var privateKey *ecdsa.PrivateKey
var err error
if ctx.IsSet(utils.PortalPrivateKeyFlag.Name) {
Expand Down

0 comments on commit 37b4382

Please sign in to comment.