frostfs-node/cmd/neofs-node/config
Leonard Lyubich 1aa88159ca [#493] node/config: Change Sub implementation
In some cases viper doesn't interpret `section.value` as a subsection with
`section` name, but value is value still can be accessed through full
pathname.

Fix `Config.Sub` method implementation in order to always interpret
configuration like described above as a subsection. From now method never
returns nil, therefore an additional check has been removed from the `Value`
method.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-01 11:45:38 +03:00
..
logger [#493] node/config/logger: Write unit tests 2021-06-01 11:45:38 +03:00
test [#493] node/config: Export useful functions into a separate test package 2021-06-01 11:45:38 +03:00
calls.go [#493] node/config: Change Sub implementation 2021-06-01 11:45:38 +03:00
calls_test.go [#493] node/config: Change Sub implementation 2021-06-01 11:45:38 +03:00
cast.go [#493] node/config: Implement string caster 2021-06-01 11:45:38 +03:00
cast_test.go [#493] node/config: Export useful functions into a separate test package 2021-06-01 11:45:38 +03:00
config.go [#493] node/config: Change Sub implementation 2021-06-01 11:45:38 +03:00
opts.go [#493] cmd/node: Implement a basic configuration component 2021-06-01 11:45:38 +03:00
util.go [#493] cmd/node: Implement a basic configuration component 2021-06-01 11:45:38 +03:00