Skip to content

Commit

Permalink
Add a SetConfig function to the LogEventProvider interface
Browse files Browse the repository at this point in the history
Update to latest config

Reduce config options
  • Loading branch information
ferglor committed Apr 1, 2024
1 parent fed2585 commit 5be305d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/types/automation/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,16 @@ type Encoder interface {

type LogEventProvider interface {
GetLatestPayloads(context.Context) ([]UpkeepPayload, error)
SetConfig(LogEventProviderConfig)
Start(context.Context) error
Close() error
}

type LogEventProviderConfig struct {
BlockRate uint32
LogLimit uint32
}

type RecoverableProvider interface {
GetRecoveryProposals(context.Context) ([]UpkeepPayload, error)
}
Expand Down

0 comments on commit 5be305d

Please sign in to comment.