From 5be305d0362a3ce64c2a5532634512e82b6ca544 Mon Sep 17 00:00:00 2001 From: Fergal Gribben Date: Mon, 4 Mar 2024 14:27:38 +0000 Subject: [PATCH] Add a SetConfig function to the LogEventProvider interface Update to latest config Reduce config options --- pkg/types/automation/interfaces.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/types/automation/interfaces.go b/pkg/types/automation/interfaces.go index a42913ef7..52f05a382 100644 --- a/pkg/types/automation/interfaces.go +++ b/pkg/types/automation/interfaces.go @@ -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) }