Skip to content

Commit e563358

Browse files
committed
chore(pullsync): remove make offer timeout
1 parent 7a83568 commit e563358

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/pullsync/pullsync.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ const (
4949
MaxCursor = math.MaxUint64
5050
DefaultMaxPage uint64 = 250
5151
pageTimeout = time.Second
52-
makeOfferTimeout = 15 * time.Minute
5352
handleMaxChunksPerSecond = 250
5453
handleRequestsLimitRate = time.Second / handleMaxChunksPerSecond // handle max `handleMaxChunksPerSecond` chunks per second per peer
5554
)
@@ -402,9 +401,6 @@ func (s *Syncer) Sync(ctx context.Context, peer swarm.Address, bin uint8, start
402401
// makeOffer tries to assemble an offer for a given requested interval.
403402
func (s *Syncer) makeOffer(ctx context.Context, rn pb.Get) (*pb.Offer, error) {
404403

405-
ctx, cancel := context.WithTimeout(ctx, makeOfferTimeout)
406-
defer cancel()
407-
408404
addrs, top, err := s.collectAddrs(ctx, uint8(rn.Bin), rn.Start)
409405
if err != nil {
410406
return nil, err

0 commit comments

Comments
 (0)