forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TieredStorage] Add AccountOffset type (solana-labs#33927)
#### Problem TieredStorage conceptually has different offsets. However, the current code directly uses the same primitive type for accessing offsets, which is error-prone as one could easily use one offset to access data that should be accessed with a different offset type. #### Summary of Changes This PR introduces the AccountOffset type, which allows static-check to on different type of TieredStorage offsets.
- Loading branch information
1 parent
70d97d3
commit da130b8
Showing
1 changed file
with
17 additions
and
9 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