use one readerCache for the whole file

This commit is contained in:
chrislu committed 2023-01-16 22:43:02 -08:00
1 parent 11d055bfc1
commit bfe5d910c6
7 files changed
+24 -17

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ type SingleChunkCacher struct {
completedTimeNew int64
}
func newReaderCache(limit int, chunkCache chunk_cache.ChunkCache, lookupFileIdFn wdclient.LookupFileIdFunctionType) *ReaderCache {
func NewReaderCache(limit int, chunkCache chunk_cache.ChunkCache, lookupFileIdFn wdclient.LookupFileIdFunctionType) *ReaderCache {
return &ReaderCache{
limit: limit,
chunkCache: chunkCache,