add before Init func support

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2023-03-16 07:25:01 +03:00
parent a10e29b8d5
commit 1603add6e6
4 changed files with 27 additions and 4 deletions

View File

@@ -87,7 +87,7 @@ func (c *vaultConfig) Init(opts ...config.Option) error {
return err
}
if err := config.DefaultAfterInit(c.opts.Context, c); err != nil && !c.opts.AllowFail {
if err = config.DefaultAfterInit(c.opts.Context, c); err != nil && !c.opts.AllowFail {
return err
}