2020-09-22 12:59:09 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2021-06-01 17:50:46 +00:00
|
|
|
nodeconfig "github.com/nspcc-dev/neofs-node/cmd/neofs-node/config/node"
|
2020-09-22 12:59:09 +00:00
|
|
|
"github.com/nspcc-dev/neofs-node/pkg/util/attributes"
|
|
|
|
)
|
|
|
|
|
2022-06-08 23:18:26 +00:00
|
|
|
func parseAttributes(c *cfg) {
|
|
|
|
if nodeconfig.Relay(c.appCfg) {
|
|
|
|
return
|
2020-09-22 12:59:09 +00:00
|
|
|
}
|
|
|
|
|
2022-06-08 23:18:26 +00:00
|
|
|
fatalOnErr(attributes.ReadNodeAttributes(&c.cfgNodeInfo.localInfo, nodeconfig.Attributes(c.appCfg)))
|
2020-09-22 12:59:09 +00:00
|
|
|
}
|