Skip to content

Commit

Permalink
Fixing observability
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz-sekara committed Nov 3, 2023
1 parent 6096233 commit f1975ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions core/chains/evm/logpoller/observability.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ func (o *ObservedORM) SelectIndexedLogsTopicRange(address common.Address, eventS
})
}

func (o *ObservedORM) FetchNotExecutedReports(commitStoreAddr common.Address, commitStoreEvent common.Hash, offrampAddress common.Address, offrampEventSig common.Hash, after time.Time, qopts ...pg.QOpt) ([]Log, error) {
return withObservedQueryAndResults(o, "FetchNotExecutedReports", func() ([]Log, error) {
return o.ORM.FetchNotExecutedReports(commitStoreAddr, commitStoreEvent, offrampAddress, offrampEventSig, after, qopts...)
})
}

func withObservedQueryAndResults[T any](o *ObservedORM, queryName string, query func() ([]T, error)) ([]T, error) {
results, err := withObservedQuery(o, queryName, query)
if err == nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ KeepEnvAlive = true
NumberOfCommitNodes = 16
MsgType = 'WithoutToken'
PhaseTimeout = '50m'
TestDuration = '1h'
TestDuration = '2h'
NodeFunding = 1000.0
RequestPerUnitTime = [1]
TimeUnit = '10s'
TimeUnit = '1s'
NoOfRoutersPerPair = 2
NoOfNetworks = 10

Expand Down

0 comments on commit f1975ab

Please sign in to comment.