From 9f94e068ab79fcc63cf0121e5e3b73bd5dbb23ec Mon Sep 17 00:00:00 2001 From: Blaize M Kaye Date: Mon, 18 Sep 2023 13:11:56 +1200 Subject: [PATCH] Readds newMessaging parameters --- internal/handler/messaging.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/handler/messaging.go b/internal/handler/messaging.go index 7def8e3..7728e4c 100644 --- a/internal/handler/messaging.go +++ b/internal/handler/messaging.go @@ -17,10 +17,12 @@ type Messaging struct { ConnectionAttempts int ConnectionRetryInterval int EnableDebug bool + ProblemsFromSBOM bool + GrypeBinaryLocation string } // NewMessaging returns a messaging with config -func NewMessaging(config mq.Config, lagoonAPI LagoonAPI, s3 S3, startupAttempts int, startupInterval int, enableDebug bool) *Messaging { +func NewMessaging(config mq.Config, lagoonAPI LagoonAPI, s3 S3, startupAttempts int, startupInterval int, enableDebug bool, problemsFromSBOM bool, grypeBinaryLocation string) *Messaging { return &Messaging{ Config: config, LagoonAPI: lagoonAPI, @@ -28,6 +30,8 @@ func NewMessaging(config mq.Config, lagoonAPI LagoonAPI, s3 S3, startupAttempts ConnectionAttempts: startupAttempts, ConnectionRetryInterval: startupInterval, EnableDebug: enableDebug, + ProblemsFromSBOM: problemsFromSBOM, + GrypeBinaryLocation: grypeBinaryLocation, } }