use codec to unmarshal

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-12-11 02:13:38 +03:00
parent 8c4f27bda5
commit af32d9af52

View File

@ -118,7 +118,7 @@ func (c *vaultConfig) Load(ctx context.Context) error {
return err
}
return json.Unmarshal(data, c.opts.Struct)
return c.opts.Codec.Unmarshal(data, c.opts.Struct)
}
func (c *vaultConfig) Save(ctx context.Context) error {