Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add try-versions of prefix iterators #14392

Closed
wants to merge 7 commits into from

Conversation

ark0f
Copy link
Contributor

@ark0f ark0f commented Jun 15, 2023

Can be very useful in migrations to avoid mistakes

@ark0f ark0f requested review from a team June 15, 2023 09:59
@ark0f ark0f force-pushed the al-try-translate-substrate branch from e029038 to 4fd841f Compare June 16, 2023 10:34
@paritytech-ci paritytech-ci requested a review from a team June 16, 2023 11:05
@kianenigma kianenigma requested a review from KiChjang June 16, 2023 11:08
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
/// If any decoding fails it skips it and continues to the next key.
///
/// If draining, then the hook `OnRemoval::on_removal` is called after each removal.
pub struct PrefixIterator<T, OnRemoval = ()> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this wrapper type necessary when you can simply type alias this to TryPrefixIterator?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Their iterator implementations have different items

@stale
Copy link

stale bot commented Jul 19, 2023

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the A3-stale label Jul 19, 2023
@stale stale bot closed this Aug 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants