update deps

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-10-27 22:56:15 +03:00
parent bfff6a7e87
commit 2089311c85
4 changed files with 7 additions and 7 deletions

View File

@@ -52,6 +52,7 @@ func (c *flagConfig) Init(opts ...config.Option) error {
fn, fv, fd := getFlagOpts(tf)
rcheck := true
switch sf.Value.Interface().(type) {
case time.Duration:
err = c.flagDuration(sf.Value, fn, fv, fd)
@@ -60,6 +61,7 @@ func (c *flagConfig) Init(opts ...config.Option) error {
err = c.flagTime(sf.Value, fn, fv, fd)
rcheck = false
}
if err != nil {
c.opts.Logger.Errorf(c.opts.Context, "flag init error: %v", err)
if !c.opts.AllowFail {