checksum: Use constant mapping for checksum types #170
No reviewers
Labels
No labels
P0
P1
P2
P3
good first issue
pool
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#170
Loading…
Reference in a new issue
No description provided.
Delete branch "aarifullin/frostfs-sdk-go:fix/checksum_enum"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is the reason of the error in #702.
I suppose it is better to map constants instead enumerating constansts via
iota
: we make alias type fromrefs.Checksum
toChecksum
and so we also need to make alias forrefs.ChecksumType
and set correct constants064e59ffe0
to84b9d29fc9
[#XX] checksum: Use constant mapping for checksum typesto checksum: Use constant mapping for checksum types