- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for closeWithErr (0.06 sec)
-
cmd/bitrot-streaming.go
} b.h.Reset() b.h.Write(p) hashBytes := b.h.Sum(nil) _, err := b.iow.Write(hashBytes) if err != nil { b.closeWithErr(err) return 0, err } n, err := b.iow.Write(p) if err != nil { b.closeWithErr(err) return n, err } if n != len(p) { err = io.ErrShortWrite b.closeWithErr(err) } return n, err } func (b *streamingBitrotWriter) Close() error { // Close the underlying writer.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 21 12:20:54 UTC 2024 - 6K bytes - Viewed (0) -
cmd/erasure-encode_test.go
} for j := range disks[:test.offDisks] { switch w := writers[j].(type) { case *wholeBitrotWriter: w.disk = badDisk{nil} case *streamingBitrotWriter: w.closeWithErr(errFaultyDisk) } } if test.offDisks > 0 { writers[0] = nil } n, err = erasure.Encode(context.Background(), bytes.NewReader(data[test.offset:]), writers, buffer, erasure.dataBlocks+1)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 11.9K bytes - Viewed (0)