Skip to content

Instantly share code, notes, and snippets.

View vsel's full-sized avatar
🏠
Working from UKRAINE🇺🇦💪

Volodymyr Selyukh vsel

🏠
Working from UKRAINE🇺🇦💪
View GitHub Profile
func retry(
f func() error,
maxRetries int,
backoffTime time.Duration,
factor float64,
) error {
retryAttempt := 1
for {
err := f()
if err != nil {