Skip to content

Commit

Permalink
Fix monitoring endpoint delegation
Browse files Browse the repository at this point in the history
  • Loading branch information
sirenko committed Nov 9, 2023
1 parent 544a68d commit 5a4e7ec
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions core/services/ocr2/delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -1359,10 +1359,15 @@ func (d *Delegate) newServicesCCIPCommit(lggr logger.SugaredLogger, jb job.Job,
ContractConfigTracker: ccipProvider.ContractConfigTracker(),
Database: ocrDB,
LocalConfig: lc,
MonitoringEndpoint: d.monitoringEndpointGen.GenMonitoringEndpoint(spec.ContractID, synchronization.OCR2CCIP),
OffchainConfigDigester: ccipProvider.OffchainConfigDigester(),
OffchainKeyring: kb,
OnchainKeyring: kb,
MonitoringEndpoint: d.monitoringEndpointGen.GenMonitoringEndpoint(
spec.ContractID,
synchronization.OCR2CCIP,
rid.Network,
rid.ChainID,
),
OffchainConfigDigester: ccipProvider.OffchainConfigDigester(),
OffchainKeyring: kb,
OnchainKeyring: kb,
}
logError := func(msg string) {
lggr.ErrorIf(d.jobORM.RecordError(jb.ID, msg), "unable to record error")
Expand Down Expand Up @@ -1407,10 +1412,15 @@ func (d *Delegate) newServicesCCIPExecution(lggr logger.SugaredLogger, jb job.Jo
ContractConfigTracker: ccipProvider.ContractConfigTracker(),
Database: ocrDB,
LocalConfig: lc,
MonitoringEndpoint: d.monitoringEndpointGen.GenMonitoringEndpoint(spec.ContractID, synchronization.OCR2CCIP),
OffchainConfigDigester: ccipProvider.OffchainConfigDigester(),
OffchainKeyring: kb,
OnchainKeyring: kb,
MonitoringEndpoint: d.monitoringEndpointGen.GenMonitoringEndpoint(
spec.ContractID,
synchronization.OCR2CCIP,
rid.Network,
rid.ChainID,
),
OffchainConfigDigester: ccipProvider.OffchainConfigDigester(),
OffchainKeyring: kb,
OnchainKeyring: kb,
}
logError := func(msg string) {
lggr.ErrorIf(d.jobORM.RecordError(jb.ID, msg), "unable to record error")
Expand Down

0 comments on commit 5a4e7ec

Please sign in to comment.