Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

object: Export constant key to the expiration attribute #504

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

cthulhu-rider
Copy link
Contributor

No description provided.

The constant is going to be used to work with object expiration time
instead of string literal or `github.com/nspcc-dev/neofs-api-go/v2`
module import.

Signed-off-by: Leonard Lyubich <[email protected]>
// Note that the value determines exactly the last epoch of the object's
// relevance: for example, with the value N, the object is relevant in epoch N
// and expired in any epoch starting from N+1.
AttributeExpirationEpoch = object.SysAttributeExpEpoch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need "key", "system" words here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

key is missing in existing ones, system - may be added, but i don't think user will care much and we'll have non-system expiration attribute

u think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont mind keeping it that way

Copy link
Member

@roman-khimov roman-khimov Aug 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"key" is kinda obvious (in that it's not a value, but some attribute name/key). "system" as well, we don't have constants for random attributes here, we only have ones that have some meaning to the system.

So it's a good name as is.

@roman-khimov roman-khimov merged commit 4305d6c into master Aug 30, 2023
@roman-khimov roman-khimov deleted the feature/object-exp-attr branch August 30, 2023 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants