Skip to content

Commit

Permalink
check mercury opts nil-ness prior to svcs append (#11603)
Browse files Browse the repository at this point in the history
If we append a nil MercuryOpts the application startup will panic.
  • Loading branch information
makramkd authored Dec 18, 2023
1 parent 6ce226c commit cfbc0b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/services/chainlink/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ func NewApplication(opts ApplicationOpts) (Application, error) {
}

// pool must be started before all relayers and stopped after them
srvcs = append(srvcs, opts.MercuryPool)
if opts.MercuryPool != nil {
srvcs = append(srvcs, opts.MercuryPool)
}

// EVM chains are used all over the place. This will need to change for fully EVM extraction
// TODO: BCF-2510, BCF-2511
Expand Down

0 comments on commit cfbc0b0

Please sign in to comment.