Skip to content

Commit

Permalink
Add func (o *ObservedORM ) DeleteExcessLogs
Browse files Browse the repository at this point in the history
  • Loading branch information
reductionista committed Aug 13, 2024
1 parent 5ece5d3 commit da6a896
Showing 1 changed file with 6 additions and 0 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 @@ -142,6 +142,12 @@ func (o *ObservedORM) DeleteExpiredLogs(ctx context.Context, limit int64) (int64
})
}

func (o *ObservedORM) DeleteExcessLogs(ctx context.Context, limit int64) (int64, error) {
return withObservedExecAndRowsAffected(o, "DeleteExcessLogs", del, func() (int64, error) {
return o.ORM.DeleteExcessLogs(ctx, limit)
})
}

func (o *ObservedORM) SelectBlockByNumber(ctx context.Context, n int64) (*LogPollerBlock, error) {
return withObservedQuery(o, "SelectBlockByNumber", func() (*LogPollerBlock, error) {
return o.ORM.SelectBlockByNumber(ctx, n)
Expand Down

0 comments on commit da6a896

Please sign in to comment.