MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / fixConfig

Method fixConfig

cmd/cql-proxy/config/proxy.go:131–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129}
130
131func (fc *FaucetConfig) fixConfig() {
132 if fc == nil {
133 return
134 }
135
136 if fc.AddressDailyQuota == 0 || fc.AccountDailyQuota == 0 {
137 log.Warning("the AddressDailyQuota & AccountDailyQuota should be valid positive number, set to 1 by default")
138
139 if fc.AddressDailyQuota == 0 {
140 fc.AddressDailyQuota = 1
141 }
142 if fc.AccountDailyQuota == 0 {
143 fc.AccountDailyQuota = 1
144 }
145 }
146
147 return
148}
149
150// LoadConfig load the common covenantsql client config again for extra faucet config.
151func LoadConfig(listenAddr string, configPath string) (config *Config, err error) {

Callers 1

ValidateMethod · 0.80

Calls 1

WarningFunction · 0.92

Tested by

no test coverage detected