commit 98c6611a757810edfe678a9bfd58ad04b4477441
parent 588579665049de998bd1800c71e72ad74ac51f76
Author: David Schlachter <t480-debian-git@schlachter.ca>
Date: Tue, 11 Nov 2025 00:33:43 -0500
Remove redundant retry option
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/main.go b/main.go
@@ -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)
}