chore(go): run betteralign and gofumpt on codebase

This commit is contained in:
Gabe Kangas
2023-10-08 14:22:28 -07:00
parent a31179b604
commit 8e79e2acfa
18 changed files with 73 additions and 61 deletions

View File

@@ -18,9 +18,9 @@ var webhookWorkerPoolSize = runtime.GOMAXPROCS(0)
// Job struct bundling the webhook and the payload in one struct.
type Job struct {
webhook models.Webhook
payload WebhookEvent
wg *sync.WaitGroup
payload WebhookEvent
webhook models.Webhook
}
var (
@@ -46,7 +46,7 @@ func initWorkerPool() {
func addToQueue(webhook models.Webhook, payload WebhookEvent, wg *sync.WaitGroup) {
log.Tracef("Queued Event %s for Webhook %s", payload.Type, webhook.URL)
queue <- Job{webhook, payload, wg}
queue <- Job{wg, payload, webhook}
}
func worker(workerID int, queue <-chan Job) {