Actions
Task #3682
closedIdea #3762: [Keep] Process entries on the current "delete" list.
Implement TrashCollector
Description
The Keepstore TrashCollector is a module which recycles trashable blocks asynchronously. The interface is:
The TrashCollector.New() function creates and returns a TrashCollector object, and launches a Recycle goroutine which waits for trash requests.
Garbage collection is triggered by the Start(trashlist) method. trashlist is a slice of block hashes, and is sent over a channel to the Recycle goroutine.
Recycle loops over the list of blocks to be deleted and calls vol.Delete on each one.
Actions