mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-25 22:40:44 +01:00
don't forget the last few bytes
This commit is contained in:
1 parent
8d1f6cd567
commit
38626cb584
1 file changed
+1
-3
@@ -103,9 +103,7 @@ type ChecksumReader struct {
|
||||
|
||||
func (cr *ChecksumReader) Read(p []byte) (int, error) {
|
||||
n, err := cr.r.Read(p)
|
||||
if err == nil {
|
||||
cr.h.Write(p[:n])
|
||||
}
|
||||
cr.h.Write(p[:n])
|
||||
return n, err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user