-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to strongly typed wrappers in VMLimitConfig #4139
Comments
More generally, I noticed that we use "bare" types a lot: pub const CHUNK_REQUEST_RETRY_MS: u64 = 100;
pub type Gas = u64; That's a bit surprising to me, as Rust generally has great facilities for strongly-typed primiteves. I think such quantities fall into three buckets: Timeouts: Byte Sizes: Domain Specific Types: Naturally, there's also the fact that all the code today doesn't use strong types, so migration would take some effort and could get stuck in the middle. |
This issue has been automatically marked as stale because it has not had recent activity in the last 2 months. |
This issue has been automatically marked as stale because it has not had recent activity in the last 2 months. |
This issue has been automatically marked as stale because it has not had recent activity in the last 2 months. |
The discussion started here: #4107 (comment)
Short motivation:
Bytesize
, show exactly in which units quantities are scoredIt can be applied to other structures, too.
Current blocker:
bytesize::Bytesize
doesn't support Hash trait.CC: @matklad
The text was updated successfully, but these errors were encountered: