aleo-setup
aleo-setup copied to clipboard
Refactor storage access logic to use only [Locator] instead of either [Locator] or [LocatorPath]
Round restart PR #288 uses a locator_or_path enum for removing chunks. In the future, this could be refactored using only the Locator struct. See inline comment: https://github.com/AleoHQ/aleo-setup/pull/288/files#r670566403
@kellpossible can you extrapolate on this if needed?
The code currently has an enum for working with both Locator and LocatorPath. There are parts of the code that the changes in #288 depend on that work with LocatorPath, these can probably be refactored to use Locator instead, rendering this LocatorOrPath enum redundant.
Using Locator instead also has the benefit of being a bit more type safe