-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Introduce
--namespace-version
CLI flag (#1585)
## Overview Introduce --namespace-version CLI flag - Closes #1528 I have introduced namespace flag. Currently this supports namespace version zero only. I think data structure for storing namespace versions can be updated. Maybe a map with version details. For example: ``` Key: Version[0], Value: { NamespaceVersionPrefixSize: ... , NamespaceVersionIDSize: ... } Key: Version[1], Value: { NamespaceVersionPrefixSize: ... , NamespaceVersionIDSize: ... } ``` instead of constants ``` NamespaceVersionZero = uint8(0) NamespaceVersionZeroPrefixSize = 22 NamespaceVersionZeroIDSize = NamespaceIDSize - NamespaceVersionZeroPrefixSize ``` Then it would be possible to switch versions easily from cli. same for share version. Please let me know if this makes sense or am I missing something. --------- Co-authored-by: Rootul P <rootulp@gmail.com> Co-authored-by: Evan Forbes <42654277+evan-forbes@users.noreply.github.com> Co-authored-by: evan-forbes <evan.samuel.forbes@gmail.com>
- Loading branch information
1 parent
952edae
commit d88adf7
Showing
2 changed files
with
59 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters