From 63915bb7a579af58777073a1cea037469d2f37cc Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 3 May 2023 13:46:07 +0300 Subject: [PATCH] [#27] *: Resolve godot linter warnings Signed-off-by: Evgenii Stratonikov --- container/attributes.go | 8 ++++---- object/attributes.go | 10 +++++----- session/xheaders.go | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/container/attributes.go b/container/attributes.go index 12277ed..288d048 100644 --- a/container/attributes.go +++ b/container/attributes.go @@ -15,20 +15,20 @@ const ( ) // SysAttributePrefixNeoFS is a prefix of key to system attribute. -// Deprecated: use SysAttributePrefix +// Deprecated: use SysAttributePrefix. const SysAttributePrefixNeoFS = "__NEOFS__" const ( // SysAttributeNameNeoFS is a string of human-friendly container name registered as the domain in NNS contract. - // Deprecated: use SysAttributeName + // Deprecated: use SysAttributeName. SysAttributeNameNeoFS = SysAttributePrefixNeoFS + "NAME" // SysAttributeZoneNeoFS is a string of zone for container name. - // Deprecated: use SysAttributeZone + // Deprecated: use SysAttributeZone. SysAttributeZoneNeoFS = SysAttributePrefixNeoFS + "ZONE" // SysAttributeHomomorphicHashingNeoFS is a container's homomorphic hashing state. - // Deprecated: use SysAttributeHomomorphicHashing + // Deprecated: use SysAttributeHomomorphicHashing. SysAttributeHomomorphicHashingNeoFS = SysAttributePrefixNeoFS + "DISABLE_HOMOMORPHIC_HASHING" ) diff --git a/object/attributes.go b/object/attributes.go index 9aa592f..7f4fca0 100644 --- a/object/attributes.go +++ b/object/attributes.go @@ -26,26 +26,26 @@ const ( ) // SysAttributePrefixNeoFS is a prefix of key to system attribute. -// Deprecated: use SysAttributePrefix +// Deprecated: use SysAttributePrefix. const SysAttributePrefixNeoFS = "__NEOFS__" const ( // SysAttributeUploadIDNeoFS marks smaller parts of a split bigger object. - // Deprecated: use SysAttributeUploadID + // Deprecated: use SysAttributeUploadID. SysAttributeUploadIDNeoFS = SysAttributePrefixNeoFS + "UPLOAD_ID" // SysAttributeExpEpochNeoFS tells GC to delete object after that epoch. - // Deprecated: use SysAttributeExpEpoch + // Deprecated: use SysAttributeExpEpoch. SysAttributeExpEpochNeoFS = SysAttributePrefixNeoFS + "EXPIRATION_EPOCH" // SysAttributeTickEpochNeoFS defines what epoch must produce object // notification. - // Deprecated: use SysAttributeTickEpoch + // Deprecated: use SysAttributeTickEpoch. SysAttributeTickEpochNeoFS = SysAttributePrefixNeoFS + "TICK_EPOCH" // SysAttributeTickTopicNeoFS defines what topic object notification // must be sent to. - // Deprecated: use SysAttributeTickTopic + // Deprecated: use SysAttributeTickTopic. SysAttributeTickTopicNeoFS = SysAttributePrefixNeoFS + "TICK_TOPIC" ) diff --git a/session/xheaders.go b/session/xheaders.go index 0e02093..c575d5f 100644 --- a/session/xheaders.go +++ b/session/xheaders.go @@ -16,19 +16,19 @@ const ( ) // ReservedXHeaderPrefixNeoFS is a prefix of keys to "well-known" X-headers. -// Deprecated: use ReservedXHeaderPrefix +// Deprecated: use ReservedXHeaderPrefix. const ReservedXHeaderPrefixNeoFS = "__NEOFS__" const ( // XHeaderNetmapEpochNeoFS is a key to the reserved X-header that specifies netmap epoch // to use for object placement calculation. If set to '0' or not set, the current // epoch only will be used. - // Deprecated: use XHeaderNetmapEpoch + // Deprecated: use XHeaderNetmapEpoch. XHeaderNetmapEpochNeoFS = ReservedXHeaderPrefixNeoFS + "NETMAP_EPOCH" // XHeaderNetmapLookupDepthNeoFS is a key to the reserved X-header that limits // how many past epochs back the node will can lookup. If set to '0' or not // set, the current epoch only will be used. - // Deprecated: use XHeaderNetmapLookupDepth + // Deprecated: use XHeaderNetmapLookupDepth. XHeaderNetmapLookupDepthNeoFS = ReservedXHeaderPrefixNeoFS + "NETMAP_LOOKUP_DEPTH" )