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

migrate pallet-recovery to benchmark V2 syntax #6299

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

clangenb
Copy link
Contributor

@clangenb clangenb requested a review from a team as a code owner October 30, 2024 16:17
@ggwpez ggwpez mentioned this pull request Oct 30, 2024
43 tasks
}

cancel_recovered {
#[benchmark]
fn cancel_recovered() -> Result<(), BenchmarkError> {
Copy link
Member

Choose a reason for hiding this comment

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

I think if you dont use a ? then you can also remove the return type and just return ().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just preserved the previous behavior, but happy to change it. I was wondering if there is any good use for BenchmarkError at all.

@ggwpez
Copy link
Member

ggwpez commented Oct 30, 2024

/cmd prdoc --bump patch --audience runtime_dev

@ggwpez ggwpez added T2-pallets This PR/Issue is related to a particular pallet. T12-benchmarks This PR/Issue is related to benchmarking and weights. labels Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T2-pallets This PR/Issue is related to a particular pallet. T12-benchmarks This PR/Issue is related to benchmarking and weights.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants