mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-27 13:27:50 +08:00
core/corerepo/pinning: Add a package comment
Currently garbage collection is triggered manually and there are no age-restrictions on the removal. I expect we'll eventually follow Git and auto-launch garbage collection when we hit some threshold of disk consumption (gc.auto). I expect we'll also follow Git and keep unpinned or unreachable objects (gc.pruneexpire, etc.). But we don't seem to do either of those yet.
This commit is contained in:
parent
e02fc1ec6b
commit
efa4907565
@ -1,3 +1,16 @@
|
||||
/*
|
||||
Package corerepo provides pinning and garbage collection for local
|
||||
IPFS block services.
|
||||
|
||||
IPFS nodes will keep local copies of any object that have either been
|
||||
added or requested locally. Not all of these objects are worth
|
||||
preserving forever though, so the node adminstrator can pin objects
|
||||
they want to keep and unpin objects that they don't care about.
|
||||
|
||||
Garbage collection sweeps iterate through the local block store
|
||||
removing objects that aren't pinned, which frees storage space for new
|
||||
objects.
|
||||
*/
|
||||
package corerepo
|
||||
|
||||
import (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user