diff --git a/provider/config.go b/provider/config.go index eedba5ed6e..3ffa56be78 100644 --- a/provider/config.go +++ b/provider/config.go @@ -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 } diff --git a/provider/const.go b/provider/const.go index 0dcaefb934..eb5fbdef52 100644 --- a/provider/const.go +++ b/provider/const.go @@ -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 }