Skip to content

Commit 46eb577

Browse files
Copilotjstirnaman
andauthored
Fix cURL example to use $max_delay variable instead of hardcoded value (#6575)
* Initial plan * Fix: use $max_delay variable instead of hardcoded 30 in cURL example Co-authored-by: jstirnaman <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jstirnaman <[email protected]>
1 parent b9c08cf commit 46eb577

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/shared/influxdb3-write-guides/troubleshoot-distributed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ for attempt in $(seq 0 $max_retries); do
391391
fi
392392

393393
# compute exponential delay and apply full jitter
394-
delay=$(awk -v b=$base -v a=$attempt 'BEGIN{d=b*(2^a); if(d>30) d=30; print d}')
394+
delay=$(awk -v b=$base -v a=$attempt -v m=$max_delay 'BEGIN{d=b*(2^a); if(d>m) d=m; print d}')
395395
sleep_seconds=$(awk -v d=$delay 'BEGIN{srand(); printf "%.3f", rand()*d}')
396396
sleep $sleep_seconds
397397
done

0 commit comments

Comments
 (0)