Skip to content

Commit

Permalink
fix usage of sdk.Util.ParseConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
lovromazgon committed Jun 21, 2024
1 parent 25a2b1d commit 43c5833
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion destination.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (d *Destination) Configure(ctx context.Context, cfg config.Config) error {
// can do them manually here.

sdk.Logger(ctx).Info().Msg("Configuring Destination...")
err := sdk.Util.ParseConfig(ctx, cfg, &d.config)
err := sdk.Util.ParseConfig(ctx, cfg, &d.config, NewDestination().Parameters())
if err != nil {
return fmt.Errorf("invalid config: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion source.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (s *Source) Configure(ctx context.Context, cfg config.Config) error {
// can do them manually here.

sdk.Logger(ctx).Info().Msg("Configuring Source...")
err := sdk.Util.ParseConfig(ctx, cfg, &s.config)
err := sdk.Util.ParseConfig(ctx, cfg, &s.config, NewSource().Parameters())
if err != nil {
return fmt.Errorf("invalid config: %w", err)
}
Expand Down

0 comments on commit 43c5833

Please sign in to comment.