Commit 6ffc10fb authored by Felipe Andrade's avatar Felipe Andrade

addr semgrep

parent 98dc2ae4
...@@ -146,10 +146,10 @@ func (c *Config) Validate() error { ...@@ -146,10 +146,10 @@ func (c *Config) Validate() error {
if provider.Wallet == "" { if provider.Wallet == "" {
return errors.Errorf("provider [%s] wallet is missing", name) return errors.Errorf("provider [%s] wallet is missing", name)
} }
if provider.SendInterval == 0 { if provider.ReceiptRetrievalInterval == 0 {
return errors.Errorf("provider [%s] receipt_retrieval_interval is missing", name) return errors.Errorf("provider [%s] receipt_retrieval_interval is missing", name)
} }
if provider.SendInterval == 0 { if provider.ReceiptRetrievalTimeout == 0 {
return errors.Errorf("provider [%s] receipt_retrieval_timeout is missing", name) return errors.Errorf("provider [%s] receipt_retrieval_timeout is missing", name)
} }
if _, ok := c.Wallets[provider.Wallet]; !ok { if _, ok := c.Wallets[provider.Wallet]; !ok {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment