feat(storage): Wire up storage buckets in session recording

This commit is contained in:
Louis Ruch authored and Timothy Messier committed 2023-05-31 12:18:14 +00:00
1 parent 7ab3c66544
commit 1662445e8e
3 files changed
+7 -8

No files matched your search

+2 -2
View File
@@ -83,7 +83,7 @@ var (
downstreamersFactory func(context.Context, string, string) (common.Downstreamers, error)
downstreamWorkersTickerFactory func(context.Context, string, string, common.Downstreamers, downstreamReceiver) (downstreamWorkersTicker, error)
commandClientFactory func(context.Context, *Controller) error
extControllerFactory func(ctx context.Context, c *Controller, r db.Reader, w db.Writer) (intglobals.ControllerExtension, error)
extControllerFactory func(ctx context.Context, c *Controller, r db.Reader, w db.Writer, kms *kms.Kms) (intglobals.ControllerExtension, error)
)
type Controller struct {
@@ -448,7 +448,7 @@ func New(ctx context.Context, conf *Config) (*Controller, error) {
}
if extControllerFactory != nil {
if c.ControllerExtension, err = extControllerFactory(ctx, c, dbase, dbase); err != nil {
if c.ControllerExtension, err = extControllerFactory(ctx, c, dbase, dbase, c.kms); err != nil {
return nil, fmt.Errorf("unable to extend controller: %w", err)
}
}