frostfs-node/cmd/neofs-node/attributes.go

15 lines
335 B
Go
Raw Normal View History

package main
import (
nodeconfig "github.com/nspcc-dev/neofs-node/cmd/neofs-node/config/node"
"github.com/nspcc-dev/neofs-node/pkg/util/attributes"
)
func parseAttributes(c *cfg) {
if nodeconfig.Relay(c.appCfg) {
return
}
fatalOnErr(attributes.ReadNodeAttributes(&c.cfgNodeInfo.localInfo, nodeconfig.Attributes(c.appCfg)))
}