use codec to unmarshal
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
8c4f27bda5
commit
af32d9af52
2
vault.go
2
vault.go
@ -118,7 +118,7 @@ func (c *vaultConfig) Load(ctx context.Context) error {
|
|||||||
return err
|
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 {
|
func (c *vaultConfig) Save(ctx context.Context) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user