-
Notifications
You must be signed in to change notification settings - Fork 23
fix: expose getScheduledRemovals on storageContext #490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR exposes the getScheduledRemovals method on the StorageContext class, providing a convenience method for users to retrieve pieces scheduled for removal without needing to instantiate a PDPVerifier directly.
- Added
getScheduledRemovals()method toStorageContextclass that wrapsPDPVerifier.getScheduledRemovals() - Included test coverage for the happy path and edge case (no data set configured)
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
packages/synapse-sdk/src/storage/context.ts |
Implements the new getScheduledRemovals() method that creates a PDPVerifier instance internally and delegates to its getScheduledRemovals() method, with proper error handling |
packages/synapse-sdk/src/test/storage.test.ts |
Adds test suite covering successful retrieval and empty array return when no data set is configured |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
synapse-dev | fd2980c | Commit Preview URL Branch Preview URL |
Dec 11 2025, 05:46 PM |
adds
getScheduledRemovalsto the StorageContext class so users don't have to instantiate a PDPVerifier themselves.Related filecoin-project/filecoin-pin#253 (comment)