fix cache bug

This commit is contained in:
6543 2023-02-10 23:06:33 +01:00
parent 01db2d50ae
commit 0b0c871af3
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ type writeCacheReader struct {
func (t *writeCacheReader) Read(p []byte) (n int, err error) {
n, err = t.originalReader.Read(p)
if err != nil {
if err != nil && err != io.EOF {
log.Trace().Err(err).Msgf("[cache] original reader for %q has returned an error", t.cacheKey)
t.hasError = true
} else if n > 0 {