-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/Do not print false warning about deprecated config #1654
Fix/Do not print false warning about deprecated config #1654
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1654 +/- ##
==========================================
- Coverage 33.18% 33.17% -0.02%
==========================================
Files 332 332
Lines 22706 22714 +8
==========================================
Hits 7536 7536
- Misses 14552 14560 +8
Partials 618 618
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
cmd/neofs-ir/main.go
Outdated
} | ||
|
||
if timeout == 0 { | ||
timeout = time.Second * defaultTimeout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not make defaultTimeout * time.Second
the constant itself?
cmd/neofs-ir/defaults.go
Outdated
cfg.SetDefault("profiler.address", "localhost:6060") | ||
cfg.SetDefault("profiler.shutdown_timeout", "30s") | ||
|
||
cfg.SetDefault("metrics.address", "localhost:9090") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This used the old values because of the need to support both sections.
I think we can remove already deprecated sections in the next release and simplify the code considerably.
…tions Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
@fyrchik, changed the idea of the PR: just dropped the deprecated naming. |
…onfig sections Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
No description provided.