dagstore pieceReader: add debug log on stream restart

This commit is contained in:
Łukasz Magiera 2021-11-26 20:21:09 +01:00
parent 331702cd95
commit 9110e6f632

View File

@ -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 {