[personal profile] aklepatc
Most important change: float multiplier. Special thanks to [personal profile] juan_gandhi for this discussion!

https://github.com/aklepatc/backoff/blob/main/backoff.go

Date: 2024-04-22 04:59 pm (UTC)
juan_gandhi: (Default)
From: [personal profile] juan_gandhi

I don't know go; so this piece looks (to me) just weird:

func expBackoff(
    ctx context.Context,
    call func() error,
    limit int,
    delay time.Duration,
    multiplier float64,
) error {

Just the language.

Date: 2024-04-22 05:14 pm (UTC)
From: [personal profile] sassa_nf
Hmmm... names and types

Date: 2024-04-22 05:51 pm (UTC)
From: [personal profile] sassa_nf
To me - no. I started typing before you responded to juan gandhi, my response doesn't really add value to your explanation.

Profile

aklepatc

May 2024

S M T W T F S
   1234
567 891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 15th, 2025 08:09 am
Powered by Dreamwidth Studios