chainflip-io / chainflip-backend

The Chainflip backend repo, including the Chainflip Node and CFE.
52 stars 15 forks source link

fix: don't remove while iterating #5460

Closed kylezs closed 3 days ago

kylezs commented 3 days ago

Pull Request

Checklist

Please conduct a thorough self-review before opening the PR.

Summary

The docs here: https://paritytech.github.io/polkadot-sdk/master/frame_support/storage/trait.IterableStorageMap.html#tymethod.iter_keys say you shouldn't remove when iterating, so even though it's probably ok, best not to.

codecov[bot] commented 3 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 71%. Comparing base (a2fcb8f) to head (20e036f). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #5460 +/- ## ====================================== - Coverage 72% 71% -0% ====================================== Files 494 494 Lines 87703 87580 -123 Branches 87703 87580 -123 ====================================== - Hits 62711 62532 -179 - Misses 22381 22435 +54 - Partials 2611 2613 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.