dagstore pieceReader: add debug log on stream restart
This commit is contained in:
parent
331702cd95
commit
9110e6f632
@ -110,6 +110,8 @@ func (p *pieceReader) ReadAt(b []byte, off int64) (n int, err error) {
|
||||
p.r = nil
|
||||
}
|
||||
|
||||
log.Debugw("pieceReader new stream", "at", p.rAt, "off", off-p.rAt)
|
||||
|
||||
p.rAt = off
|
||||
p.r, _, err = p.api.FetchUnsealedPiece(p.ctx, p.pieceCid, uint64(p.rAt))
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user