Move SanitizedConfig back to a shared-ent file. (#11291)

This commit is contained in:
Nick Cabatoff 2021-04-07 10:25:05 -04:00 committed by GitHub
parent a7c22c7140
commit c2673ee86a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View File

@ -2614,6 +2614,16 @@ func (c *Core) SetConfig(conf *server.Config) {
c.logger.Debug("set config", "sanitized config", string(bz))
}
// SanitizedConfig returns a sanitized version of the current config.
// See server.Config.Sanitized for specific values omitted.
func (c *Core) SanitizedConfig() map[string]interface{} {
conf := c.rawConfig.Load()
if conf == nil {
return nil
}
return conf.(*server.Config).Sanitized()
}
// LogFormat returns the log format current in use.
func (c *Core) LogFormat() string {
conf := c.rawConfig.Load()

View File

@ -66,16 +66,6 @@ func (c *Core) GetCoreConfigInternal() *server.Config {
return conf.(*server.Config)
}
// SanitizedConfig returns a sanitized version of the current config.
// See server.Config.Sanitized for specific values omitted.
func (c *Core) SanitizedConfig() map[string]interface{} {
conf := c.rawConfig.Load()
if conf == nil {
return nil
}
return conf.(*server.Config).Sanitized()
}
func (c *Core) teardownReplicationResolverHandler() {}
func createSecondaries(*Core, *CoreConfig) {}