checksum: Use constant mapping for checksum types #170

Merged
dstepanov-yadro merged 1 commit from aarifullin/frostfs-sdk-go:fix/checksum_enum into master 2023-09-29 09:50:04 +00:00
Member

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 from refs.Checksum to Checksum and so we also need to make alias for refs.ChecksumType and set correct constants

This is the reason of the error in [#702](https://git.frostfs.info/TrueCloudLab/frostfs-node/issues/702). I suppose it is better to map constants instead enumerating constansts via `iota`: we make alias type from `refs.Checksum` to `Checksum` and so we also need to make alias for `refs.ChecksumType` and set correct constants
aarifullin force-pushed fix/checksum_enum from 064e59ffe0 to 84b9d29fc9 2023-09-28 14:20:42 +00:00 Compare
aarifullin changed title from [#XX] checksum: Use constant mapping for checksum types to checksum: Use constant mapping for checksum types 2023-09-28 14:20:58 +00:00
acid-ant approved these changes 2023-09-28 14:33:41 +00:00
dstepanov-yadro approved these changes 2023-09-29 09:49:58 +00:00
dstepanov-yadro merged commit 84b9d29fc9 into master 2023-09-29 09:50:04 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-sdk-go#170
No description provided.