Skip to content

Commit b2648e5

Browse files
committed
fix: shard
1 parent d3b10be commit b2648e5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/file/joiner/joiner.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,12 @@ func (j *joiner) processChunkAddresses(ctx context.Context, fn swarm.AddressIter
406406
if j.refLength == encryption.ReferenceSize && i < shardCnt {
407407
addr = swarm.NewAddress(data[cursor : cursor+swarm.HashSize*2])
408408
}
409+
410+
// not a shard
411+
if i >= shardCnt {
412+
return nil
413+
}
414+
409415
ch, err := g.Get(ectx, addr)
410416
if err != nil {
411417
return err

0 commit comments

Comments
 (0)