GitBulletin

Repository: farcasterxyz/hub-monorepo

"Storage Triumph: Negative Usage Issue Finally Squashed!"

2025-03-12 14:43:48 UTC

"Groundbreaking Fix in Hubble Application Ensures Accurate Storage Reporting, Bolstering Performance and Reliability!"

Commit Details:

fix: stop producing negative storage usage (#2549) Addresses the issue reported here: https://github.com/farcasterxyz/hub-monorepo/issues/2547 ## Merge Checklist _Choose all relevant options below by adding an `x` now or at any time before submitting for review_ - [x] PR title adheres to the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) standard - [x] PR has a [changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets) - [x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore) - [ ] PR includes [documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs) if necessary. <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on fixing the storage usage calculations in the `hubble` application to prevent negative values, enhancing cache management, and adding tests to ensure accurate usage reporting. ### Detailed summary - Added `clearCaches` method to `eventHandler` and `storageCache`. - Updated logic in `StorageCache` to prevent negative counts. - Introduced a test for accurate storage usage when a username proof is revoked. - Enhanced test coverage for storage usage scenarios. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->

Search Similar