From 71efe2978490729dda62fb6bbcdf4db166a5da5b Mon Sep 17 00:00:00 2001 From: istae <14264581+istae@users.noreply.github.com> Date: Sat, 23 Sep 2023 00:08:56 +0300 Subject: [PATCH] fix: var --- pkg/pullsync/pullsync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pullsync/pullsync.go b/pkg/pullsync/pullsync.go index 56f2c684038..e3e2cba217b 100644 --- a/pkg/pullsync/pullsync.go +++ b/pkg/pullsync/pullsync.go @@ -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))