[#1114] neofs-node: Make some parameters optional in relay mode
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
ce76325840
commit
e292321ccf
2 changed files with 10 additions and 3 deletions
|
@ -17,6 +17,10 @@ const (
|
|||
)
|
||||
|
||||
func parseAttributes(c *config.Config) []*netmap.NodeAttribute {
|
||||
if nodeconfig.Relay(c) {
|
||||
return nil
|
||||
}
|
||||
|
||||
stringAttributes := nodeconfig.Attributes(c)
|
||||
|
||||
attrs, err := attributes.ParseV2Attributes(stringAttributes, nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue