Skip to content

Commit

Permalink
Readds newMessaging parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
bomoko committed Sep 18, 2023
1 parent 730b47a commit 9f94e06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/handler/messaging.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,21 @@ 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,
S3Config: s3,
ConnectionAttempts: startupAttempts,
ConnectionRetryInterval: startupInterval,
EnableDebug: enableDebug,
ProblemsFromSBOM: problemsFromSBOM,
GrypeBinaryLocation: grypeBinaryLocation,
}
}

Expand Down

0 comments on commit 9f94e06

Please sign in to comment.