mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-02 16:04:20 +01:00
In insert_version_raw(), we correctly iterate the versions backwards because we want to find the newest version that is still older than the one we are inserting. However, the order of `.enumerate()` and `.rev()` was wrong, so the insertion position was calculated based on the position in the _reversed_ iterator, not the original iterator.