mirror of
https://github.com/octoleo/restic.git
synced 2024-11-23 13:17:42 +00:00
ContReader: Remove debug output
This commit is contained in:
parent
5071f28d55
commit
a850041cf0
@ -1,9 +1,6 @@
|
|||||||
package s3
|
package s3
|
||||||
|
|
||||||
import (
|
import "io"
|
||||||
"fmt"
|
|
||||||
"io"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ContinuousReader implements an io.Reader on top of an io.ReaderAt, advancing
|
// ContinuousReader implements an io.Reader on top of an io.ReaderAt, advancing
|
||||||
// an offset.
|
// an offset.
|
||||||
@ -13,11 +10,7 @@ type ContinuousReader struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *ContinuousReader) Read(p []byte) (int, error) {
|
func (c *ContinuousReader) Read(p []byte) (int, error) {
|
||||||
fmt.Printf("ContinuousReader %p: ReadAt(offset %v)\n", c, c.Offset)
|
|
||||||
n, err := c.R.ReadAt(p, c.Offset)
|
n, err := c.R.ReadAt(p, c.Offset)
|
||||||
fmt.Printf("ContinuousReader %p: len(p) = %v, n %v, err %v\n",
|
|
||||||
c, len(p), n, err)
|
|
||||||
fmt.Printf(" %02x\n", p[:n])
|
|
||||||
c.Offset += int64(n)
|
c.Offset += int64(n)
|
||||||
return n, err
|
return n, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user