Skip to content

Commit

Permalink
core/services/chainlink: skip P2P Peer Wrapper when unused (#11411)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 authored Nov 29, 2023
1 parent e4f6d99 commit 7e7b84b
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 @@ -360,7 +360,9 @@ func NewApplication(opts ApplicationOpts) (Application, error) {
}

var peerWrapper *ocrcommon.SingletonPeerWrapper
if cfg.P2P().Enabled() {
if !cfg.OCR().Enabled() && !cfg.OCR2().Enabled() {
globalLogger.Debug("P2P stack not needed")
} else if cfg.P2P().Enabled() {
if err := ocrcommon.ValidatePeerWrapperConfig(cfg.P2P()); err != nil {
return nil, err
}
Expand Down

0 comments on commit 7e7b84b

Please sign in to comment.