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

feat: Implement gc task #120

Merged
merged 6 commits into from
Nov 21, 2023
Merged

feat: Implement gc task #120

merged 6 commits into from
Nov 21, 2023

Conversation

dariusc93
Copy link
Owner

This PR implements a garbage collection to allow removing of unpinned blocks. This PR also implements a temporary cache to exclude any newly added blocks for a specific duration (default 2mins) before it is allowed to be cleared by the garbage collector.

Resolves #17

@dariusc93 dariusc93 self-assigned this Nov 21, 2023
@dariusc93 dariusc93 marked this pull request as ready for review November 21, 2023 04:09
@dariusc93 dariusc93 merged commit 0474b17 into libp2p-next Nov 21, 2023
@dariusc93 dariusc93 deleted the feat/blockstore-gc branch November 21, 2023 04:10
@dariusc93 dariusc93 restored the feat/blockstore-gc branch November 21, 2023 04:10
@dariusc93 dariusc93 deleted the feat/blockstore-gc branch May 15, 2024 05:20
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.

Implement garbage collection
1 participant