i'm sorry sir linter

This commit is contained in:
kim 2024-04-26 13:35:37 +01:00
parent 951335a26c
commit 4b7d5b3b86
1 changed files with 0 additions and 11 deletions

View File

@ -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)
}