mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:18:52 +00:00
i'm sorry sir linter
This commit is contained in:
parent
951335a26c
commit
4b7d5b3b86
1 changed files with 0 additions and 11 deletions
|
@ -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 a new issue