From 3b9d4b4df18d6707bfd3e306658faa5707a9296c Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 10 Feb 2021 23:56:14 +0300 Subject: [PATCH] [#362] cmd/node: Use const key to UN/LOCODE attribute from the API lib Signed-off-by: Leonard Lyubich --- cmd/neofs-node/attributes.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/neofs-node/attributes.go b/cmd/neofs-node/attributes.go index bdacd3cc2..dcecea7ca 100644 --- a/cmd/neofs-node/attributes.go +++ b/cmd/neofs-node/attributes.go @@ -46,14 +46,11 @@ type wellKnownNodeAttrDesc struct { defaultVal string } -// TODO: define attribute keys in API lib. -const attrKeyLocode = "UN-LOCODE" - func listWellKnownAttrDesc() map[string]wellKnownNodeAttrDesc { return map[string]wellKnownNodeAttrDesc{ netmap.AttrPrice: {defaultVal: strconv.FormatUint(defaultPrice, 10)}, netmap.AttrCapacity: {defaultVal: strconv.FormatUint(defaultCapacity, 10)}, - attrKeyLocode: {explicit: true}, + netmap.AttrUNLOCODE: {explicit: true}, } }