Skip to content

Commit

Permalink
feat: add SyncDeclinedEvents field to controller struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Huck committed Aug 12, 2023
1 parent cf05cca commit 01355ec
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions internal/sync/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,22 @@ var (
type Controller struct {
source Source
// transformers are applied in order
transformers []Transformer
sink Sink
concurrency int
logger *log.Logger
transformers []Transformer
sink Sink
concurrency int
logger *log.Logger
SyncDeclinedEvents bool
}

// NewController constructs a new Controller.
func NewController(logger *log.Logger, source Source, sink Sink, transformer ...Transformer) Controller {
func NewController(logger *log.Logger, source Source, sink Sink, SyncDeclinedEvents bool, transformer ...Transformer) Controller {
return Controller{
concurrency: 1,
source: source,
transformers: transformer,
sink: sink,
logger: logger,
concurrency: 1,
source: source,
transformers: transformer,
sink: sink,
logger: logger,
SyncDeclinedEvents: SyncDeclinedEvents,
}
}

Expand Down

0 comments on commit 01355ec

Please sign in to comment.