Skip to content

Commit

Permalink
fix: allow maxMultiplexForwards to be set to zero (ethersphere#4682)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeffenb authored and aranyia committed Jul 9, 2024
1 parent a0d8c2e commit b0854ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pushsync/pushsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func (ps *PushSync) pushToClosest(ctx context.Context, ch swarm.Chunk, origin bo

resultChan := make(chan receiptResult)

retryC := make(chan struct{}, parallelForwards)
retryC := make(chan struct{}, max(1, parallelForwards))

retry := func() {
select {
Expand Down

0 comments on commit b0854ca

Please sign in to comment.