Skip to content

Commit

Permalink
fix: var
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Sep 22, 2023
1 parent a0944f2 commit 71efe29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pullsync/pullsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ func (s *Syncer) processWant(ctx context.Context, o *pb.Offer, w *pb.Want) ([]sw
if bv.Get(i) {
ch := o.Chunks[i]
addr := swarm.NewAddress(ch.Address)
c, err := s.store.ReserveGet(ctx, swarm.NewAddress(ch.Address), ch.BatchID)
c, err := s.store.ReserveGet(ctx, addr, ch.BatchID)
if err != nil {
s.logger.Error(err, "processing want: unable to find chunk", "chunk_address", addr, "batch_id", ch.BatchID)
chunks = append(chunks, swarm.NewChunk(swarm.ZeroAddress, nil))
Expand Down

0 comments on commit 71efe29

Please sign in to comment.