fix bug in ReadManyValues (#3059)

This commit is contained in:
Rafael Weinstein
2017-01-11 11:54:01 -08:00
committed by GitHub
parent c885ace18f
commit d0bf8ddc55

View File

@@ -187,6 +187,10 @@ func (lvs *ValueStore) ReadManyValues(hashes hash.HashSet, foundValues chan<- Va
remaining.Insert(h)
}
if len(remaining) == 0 {
return
}
// Request remaining hashes from BatchStore, processing the found chunks as they come in.
foundChunks := make(chan *chunks.Chunk, 16)
foundHashes := hash.HashSet{}