Skip to content

Commit 37b4382

Browse files
fearlessfeGrapeBaBa
authored andcommitted
fix: rename PortalHistoryConfig to Config
1 parent 0b6714d commit 37b4382

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/shisui/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"github.com/urfave/cli/v2"
2222
)
2323

24-
type PortalHistoryConfig struct {
24+
type Config struct {
2525
Protocol *discover.PortalProtocolConfig
2626
PrivateKey *ecdsa.PrivateKey
2727
RpcAddr string
@@ -101,8 +101,8 @@ func shisui(ctx *cli.Context) error {
101101
return nil
102102
}
103103

104-
func getPortalHistoryConfig(ctx *cli.Context) (*PortalHistoryConfig, error) {
105-
config := &PortalHistoryConfig{
104+
func getPortalHistoryConfig(ctx *cli.Context) (*Config, error) {
105+
config := &Config{
106106
Protocol: discover.DefaultPortalProtocolConfig(),
107107
}
108108
err := setPrivateKey(ctx, config)
@@ -145,7 +145,7 @@ func getPortalHistoryConfig(ctx *cli.Context) (*PortalHistoryConfig, error) {
145145
return config, nil
146146
}
147147

148-
func setPrivateKey(ctx *cli.Context, config *PortalHistoryConfig) error {
148+
func setPrivateKey(ctx *cli.Context, config *Config) error {
149149
var privateKey *ecdsa.PrivateKey
150150
var err error
151151
if ctx.IsSet(utils.PortalPrivateKeyFlag.Name) {

0 commit comments

Comments
 (0)