fix cache bug

This commit is contained in:
6543 2023-02-10 23:06:33 +01:00
parent 7c5831d293
commit a67b068a16
No known key found for this signature in database
GPG Key ID: B8BE6D610E61C862

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 {