[#415] *: Go fmt -s

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-09-15 08:20:13 +03:00 committed by LeL
parent fcf1d02afc
commit 1853349f22
9 changed files with 23 additions and 16 deletions

View file

@ -59,13 +59,13 @@ func subnetAttributeKey(id *refs.SubnetID) string {
// Existing subnet attributes are expected to be key-unique, otherwise undefined behavior.
//
// Does not add (removes existing) attribute if node:
// * disables non-zero subnet;
// * enables zero subnet.
// - disables non-zero subnet;
// - enables zero subnet.
//
// Attribute key is calculated from ID using format `__NEOFS__SUBNET_%s`.
// Attribute Value is:
// * `True` if node enters the subnet;
// * `False`, otherwise.
// - `True` if node enters the subnet;
// - `False`, otherwise.
func WriteSubnetInfo(node *NodeInfo, info NodeSubnetInfo) {
attrs := node.GetAttributes()