MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / setRedisDefaults

Method setRedisDefaults

config/config.go:419–426  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

417}
418
419func (cnf *Configuration) setRedisDefaults() {
420 if cnf.Redis.PoolSize == 0 {
421 cnf.Redis.PoolSize = defaultRedis.PoolSize
422 }
423 if cnf.Redis.MinIdleConns == 0 {
424 cnf.Redis.MinIdleConns = defaultRedis.MinIdleConns
425 }
426}
427
428func (cnf *Configuration) setDatabaseDefaults() {
429 if cnf.DataSource.MaxOpenConns == 0 {

Callers 1

setDefaultValuesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected