Skip to content
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

fix: clean up public API for clearing files #1771

Merged
merged 1 commit into from
Jan 14, 2025
Merged

fix: clean up public API for clearing files #1771

merged 1 commit into from
Jan 14, 2025

Conversation

vmx
Copy link
Contributor

@vmx vmx commented Jan 8, 2025

clear_layer_data() and clear_caches are never called within rust-fil-proofs and also not used in rust-filecoin-proofs-api, hence remove them.

The clear_cache() and clear_synthetic_proofs() functions don't need to be generic over the tree as it's never used within those functions. This is a breaking change.

BREAKING CHANGE: signature of clear_cache() and clear_synthetic_proofs() changed. The generic parameter is no longer needed.


I've put this on master. I'll rebase it, once master is green.

@vmx vmx force-pushed the clear-api-cleanup branch 2 times, most recently from 91c7ffc to a51b842 Compare January 13, 2025 19:23
`clear_layer_data()` and `clear_caches` are never called within `rust-fil-proofs`
and also not used in `rust-filecoin-proofs-api`, hence remove them.

The `clear_cache()` and `clear_synthetic_proofs()` functions don't need to be
generic over the tree as it's never used within those functions. This is a
breaking change.

BREAKING CHANGE: signature of `clear_cache()` and `clear_synthetic_proofs()`
changed. The generic parameter is no longer needed.
@vmx vmx force-pushed the clear-api-cleanup branch from a51b842 to d64fcfe Compare January 13, 2025 19:31
@vmx vmx marked this pull request as ready for review January 13, 2025 19:56
@vmx vmx merged commit 8e96f1d into master Jan 14, 2025
20 checks passed
@vmx vmx deleted the clear-api-cleanup branch January 14, 2025 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants