diff --git a/internal/workers/workers.go b/internal/workers/workers.go index c8606ef9f..3f4156841 100644 --- a/internal/workers/workers.go +++ b/internal/workers/workers.go @@ -18,7 +18,6 @@ package workers import ( - "log" "runtime" "github.com/superseriousbusiness/gotosocial/internal/config" @@ -98,13 +97,3 @@ func deliveryWorkers(maxprocs int) int { } return n * maxprocs } - -// tryUntil will attempt to call 'do' for 'count' attempts, before panicking with 'msg'. -func tryUntil(msg string, count int, do func() bool) { - for i := 0; i < count; i++ { - if do() { - return - } - } - log.Panicf("failed %s after %d tries", msg, count) -}