Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dimriou committed Apr 22, 2024
1 parent 7910a77 commit 8515dd7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/services/job/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,14 @@ func (r JSONConfig) MercuryCredentialName() (string, error) {
return name, nil
}

func (relayConfig JSONConfig) ApplyDefaultsOCR2(cfg ocr2Config) {
_, ok := relayConfig["defaultTransactionQueueDepth"]
func (r JSONConfig) ApplyDefaultsOCR2(cfg ocr2Config) {
_, ok := r["defaultTransactionQueueDepth"]
if !ok {
relayConfig["defaultTransactionQueueDepth"] = cfg.DefaultTransactionQueueDepth()
r["defaultTransactionQueueDepth"] = cfg.DefaultTransactionQueueDepth()
}
_, ok = relayConfig["simulateTransactions"]
_, ok = r["simulateTransactions"]
if !ok {
relayConfig["simulateTransactions"] = cfg.SimulateTransactions()
r["simulateTransactions"] = cfg.SimulateTransactions()
}
}

Expand Down

0 comments on commit 8515dd7

Please sign in to comment.