Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ferglor committed Jun 21, 2024
1 parent 8ec492e commit 65eb2f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func NewLogBuffer(lggr logger.Logger, lookback, blockRate, logLimit uint32, dequ
// All logs for an upkeep on a particular block will be enqueued in a single Enqueue call.
// Returns the number of logs that were added and number of logs that were dropped.
func (b *logBuffer) Enqueue(uid *big.Int, logs ...logpoller.Log) (int, int) {
// TODO: lock the whole enqueue so that we don't evict good logs
buf, ok := b.getUpkeepQueue(uid)
if !ok || buf == nil {
buf = newUpkeepLogQueue(b.lggr, uid, b.opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (o *LogTriggersOptions) defaultBlockRate() uint32 {
func (o *LogTriggersOptions) defaultLogLimit() uint32 {
switch o.chainID.Int64() {
case 42161, 421613, 421614: // Arbitrum
return 1
return 1 // TODO should this be 2
case 1, 4, 5, 42, 11155111: // Eth
return 20
case 10, 420, 56, 97, 137, 80001, 43113, 43114, 8453, 84531: // Optimism, BSC, Polygon, Avax, Base
Expand Down

0 comments on commit 65eb2f4

Please sign in to comment.