fix: need to squash embedded config
This commit is contained in:
parent
d5c0157fd8
commit
5dfedeb66a
|
@ -8,8 +8,8 @@ import (
|
||||||
var _ config.ProtocolConfig = (*Config)(nil)
|
var _ config.ProtocolConfig = (*Config)(nil)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
*s5config.NodeConfig
|
*s5config.NodeConfig `mapstructure:",squash"`
|
||||||
DbPath string `mapstructure:"db_path"`
|
DbPath string `mapstructure:"db_path"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c Config) Defaults() map[string]interface{} {
|
func (c Config) Defaults() map[string]interface{} {
|
||||||
|
|
Loading…
Reference in New Issue