Skip to content
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

Remove redundant and stale comment #27229

Merged
merged 1 commit into from
Aug 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion runtime/src/execute_cost_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ impl ExecuteCostTable {
self.table.len()
}

/// default program cost, set to ComputeBudget::DEFAULT_COMPUTE_UNIT_LIMIT
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe, DEFAULT_COMPUTE_UNIT_LIMIT should be DEFAULT_INSTRUCTION_COMPUTE_UNIT_LIMIT. typo at #25229

moreover, i think this comment adds little value, so better off removing it altogether. that's because the fn body is small and the fn name alone is enough while the comment is being redundant.

pub fn get_default_compute_unit_limit(&self) -> u64 {
DEFAULT_INSTRUCTION_COMPUTE_UNIT_LIMIT as u64
}
Expand Down