etcd: fix config clone

This commit is contained in:
Andras Banki-Horvath
2022-01-21 17:23:04 +01:00
parent 40af029413
commit 5e90193180

View File

@@ -61,6 +61,7 @@ func (c *Config) CloneWithSubNamespace(subNamespace string) *Config {
KeyFile: c.KeyFile,
InsecureSkipVerify: c.InsecureSkipVerify,
CollectStats: c.CollectStats,
MaxMsgSize: c.MaxMsgSize,
SingleWriter: c.SingleWriter,
}
}
@@ -81,6 +82,7 @@ func (c *Config) CloneWithSingleWriter() *Config {
KeyFile: c.KeyFile,
InsecureSkipVerify: c.InsecureSkipVerify,
CollectStats: c.CollectStats,
MaxMsgSize: c.MaxMsgSize,
SingleWriter: true,
}
}