correctly handle eof

This commit is contained in:
Vilsol 2022-06-04 01:44:41 +03:00
parent fb1d33cc17
commit e50b2e59e9

View file

@ -34,9 +34,13 @@ func (pt *Progresser) Read(p []byte) (int, error) {
}
}
if err != io.EOF {
return n, errors.Wrap(err, "failed to read")
}
return n, err
}
type GenericUpdate struct {
Progress float64
}