"Tech Titans Tackle the Trimming Crisis: New Code Check to Optimize Pruning Process!"
"Developers unveil groundbreaking updates that could revolutionize message management efficiency, ensuring no unnecessary data is lost!"
Commit Details:
chore: Check if message count is less than prune size before pruning (#1977) ## Motivation Minor cleanups + check to see if we need to prune at all ## 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) - [ ] 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. - [X] All [commits have been signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits) ## Additional Context If this is a relatively large or complex change, provide more details here that will help reviewers <!-- start pr-codex --> --- ## PR-Codex overview This PR updates the `@farcaster/hubble` package and refactors the `rustStoreBase.ts` and various files in the `trie` module for improved functionality. ### Detailed summary - Added a fix to check the need for pruning before pruning in `rustStoreBase.ts` - Fixed a typo in a message in `merkle_trie.rs` - Removed unnecessary `Arc` import in `trie_node.rs` - Refactored `TrieNode` methods to remove `Arc<RocksDB>` parameters - Improved key grouping logic in `TrieNode` - Updated method signatures and logic in `TrieNode` for better functionality > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->