Repository navigation
fix(dash-spv): run the storage worker only between start and stop or drop - #1183
Merged
Merged
Conversation
…drop `DiskStorageManager::new` started the background persistence worker, and only `stop` and `clear` aborted it. A manager dropped without `stop` left the task alive, holding the storages and writing to the directory. The worker now starts only from `start`, and dropping the manager aborts it. Closes #1162 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 35 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #1183 +/- ##
==========================================
- Coverage 78.87% 78.85% -0.03%
==========================================
Files 304 304
Lines 81405 81414 +9
==========================================
- Hits 64206 64196 -10
- Misses 17199 17218 +19
|
ZocoLini
marked this pull request as ready for review
October 16, 2026 14:02
Contributor
|
Bots are done — your move: post |
xdustinface
approved these changes
Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DiskStorageManager::newstarted the background persistence worker, and onlystopandclearaborted it, with noDrop. A manager dropped withoutstop(e.g. one passed to aDashSpvClientthat never ran) left the task alive: it kept the storages and kept writing to the directory, even after another manager had opened it.newno longer starts the worker; it runs fromstart(whichDashSpvClient::runalready calls).stopis still what persists.Platform's workaround of calling
stopright afternewbecomes unnecessary.Closes #1162
🤖 Generated with Claude Code
PR Hygiene ·
61a0c02/self-revieweddash-spv(dash-spv/src/storage/mod.rs) — QuantumExplorer or xdustinfaceWhen every merge requirement is met, the
PR Hygienecheck passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.