From 8294003e0b1db1197c298f146c0aa54813047bb8 Mon Sep 17 00:00:00 2001 From: ferglor Date: Mon, 4 Mar 2024 12:26:39 +0000 Subject: [PATCH] Add a SetConfig function to the LogEventProvider interface (#367) * Add setters and getters for config fields --- pkg/types/automation/interfaces.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/types/automation/interfaces.go b/pkg/types/automation/interfaces.go index a42913ef7..fa3ca0b67 100644 --- a/pkg/types/automation/interfaces.go +++ b/pkg/types/automation/interfaces.go @@ -48,10 +48,17 @@ type Encoder interface { type LogEventProvider interface { GetLatestPayloads(context.Context) ([]UpkeepPayload, error) + SetConfig(LogEventProviderConfig) Start(context.Context) error Close() error } +type LogEventProviderConfig struct { + NumLogUpkeeps uint32 + FastExecLogsHigh uint32 + FastExecLogsLow uint32 +} + type RecoverableProvider interface { GetRecoveryProposals(context.Context) ([]UpkeepPayload, error) }