removed repeated GetId functions using struct embedding

This commit is contained in:
2024-12-27 16:52:27 +09:00
parent f1572f9321
commit 9d266180e9
9 changed files with 175 additions and 134 deletions

View File

@ -51,6 +51,10 @@ type PXYServiceConfig struct {
Addrs []string `yaml:"addresses"`
}
type WPXServiceConfig struct {
Addrs []string `yaml:"addresses"`
}
type RPCServiceConfig struct { // rpc server-side configuration
Addrs []string `yaml:"addresses"`
}
@ -94,7 +98,7 @@ type ServerConfig struct {
} `yaml:"pxy"`
WPX struct {
Service PXYServiceConfig `yaml:"service"`
Service WPXServiceConfig `yaml:"service"`
TLS ServerTLSConfig `yaml:"tls"`
} `yaml:"wpx"`