diff options
| author | David Schlachter <t480-debian-git@schlachter.ca> | 2025-11-11 00:33:43 -0500 |
|---|---|---|
| committer | David Schlachter <t480-debian-git@schlachter.ca> | 2025-11-11 00:33:43 -0500 |
| commit | 98c6611a757810edfe678a9bfd58ad04b4477441 (patch) | |
| tree | e43bf90b9073bca0555fb011864468dbf14c7817 /main.go | |
| parent | 588579665049de998bd1800c71e72ad74ac51f76 (diff) | |
Remove redundant retry option
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -35,7 +35,10 @@ type Task struct { } func (t Task) Run() { - _, err := backoff.Retry(context.Background(), func() (bool, error) { return true, createTask(t.Name) }, backoff.WithBackOff(backoff.NewExponentialBackOff())) + _, err := backoff.Retry( + context.Background(), + func() (bool, error) { return true, createTask(t.Name) }, + ) if err != nil { log.Printf("Failed to create task '%s': %s", t.Name, err) } |
