i'm sorry sir linter
This commit is contained in:
parent
951335a26c
commit
4b7d5b3b86
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue