Skip to content

Commit

Permalink
chore: fix bytes setter
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Oct 12, 2024
1 parent 11d2b8b commit 700f1c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions provider/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ func NewBoolSetterFromConfig(ctx context.Context, param string, config Config) (
}

// NewBytesSetterFromConfig creates a BytesSetter from config
func NewBytesSetterFromConfig(param string, config Config) (func([]byte) error, error) {
prov, err := provider[SetBytesProvider]("bytes", config)
func NewBytesSetterFromConfig(ctx context.Context, param string, config Config) (func([]byte) error, error) {
prov, err := provider[SetBytesProvider]("bytes", ctx, config)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion provider/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (o *constProvider) BoolSetter(param string) (func(bool) error, error) {
var _ SetBytesProvider = (*constProvider)(nil)

func (o *constProvider) BytesSetter(param string) (func([]byte) error, error) {
set, err := NewBytesSetterFromConfig(param, o.set)
set, err := NewBytesSetterFromConfig(o.ctx, param, o.set)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 700f1c2

Please sign in to comment.