You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…adHandler (#570)
### What changes were proposed in this pull request?
Add enum Tier, use EnumMap to replace switch-case in ComposedClientReadHandler.
### Why are the changes needed?
Make the code more concise.
### Does this PR introduce any user-facing change?
No.
### How was this patch tested?
Existing CI.
Code of Conduct
Search before asking
What would you like to be improved?
In ComposedClientReadHandler, storage tiers are represented in int values, and it uses a lot of switch-case to get the corresponding handler.
This is error prone and difficult to understand.
How should we improve?
Represent storage tier as enum, and get handlers by EnumMap.
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: