Beispiel #1
0
// A single goroutine running this function is created for every storage.
// types.CacheAlgorithms will send to the com channel files which they wish to be removed
// from the storage.
func (a *Application) cacheToStorageCommunicator(stor types.Storage,
	com chan types.ObjectIndex) {
	for oi := range com {
		stor.DiscardIndex(oi)
	}
}