parent
0bbd39333c
commit
75dad99895
4 changed files with 215 additions and 1 deletions
|
|
@ -805,7 +805,7 @@ func tariffInstance(name string, conf config.Typed) (api.Tariff, error) {
|
|||
return nil, fmt.Errorf("cannot decode custom tariff '%s': %w", name, err)
|
||||
}
|
||||
|
||||
instance, err := tariff.NewFromConfig(ctx, conf.Type, props)
|
||||
instance, err := tariff.NewCachedFromConfig(ctx, conf.Type, props)
|
||||
if err != nil {
|
||||
if ce := new(util.ConfigError); errors.As(err, &ce) {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue