Skip to content

Commit 416a59d

Browse files
Alec CunninghamAlec Cunningham
Alec Cunningham
authored and
Alec Cunningham
committed
fix: worker imports
1 parent 711e510 commit 416a59d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.23.2
55
require (
66
github.com/gin-gonic/gin v1.10.0
77
github.com/google/go-github/v50 v50.2.0
8-
github.com/moosh3/github-actions-aggregator v0.0.0-20241023163131-e09fd3b10193
98
github.com/sirupsen/logrus v1.9.3
109
github.com/spf13/viper v1.19.0
1110
github.com/stretchr/testify v1.9.0

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w
8080
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
8181
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
8282
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
83-
github.com/moosh3/github-actions-aggregator v0.0.0-20241023163131-e09fd3b10193 h1:i13RmPt/rMcSoXtEvn4FVeE1PT99IM9E7o9BKnP36+Y=
84-
github.com/moosh3/github-actions-aggregator v0.0.0-20241023163131-e09fd3b10193/go.mod h1:Ktqf57eOHhEfrKpMTJ42kIbd7B1/KQ45C+XaFfoaZ6M=
8583
github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM=
8684
github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs=
8785
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=

pkg/api/router.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@ package api
33
import (
44
"github.com/gin-gonic/gin"
55
"github.com/moosh3/github-actions-aggregator/pkg/auth"
6+
"github.com/moosh3/github-actions-aggregator/pkg/config"
67
"github.com/moosh3/github-actions-aggregator/pkg/db"
7-
"github.com/mooshe3/github-actions-aggregator/pkg/config"
8-
"github.com/mooshe3/github-actions-aggregator/pkg/github"
8+
"github.com/moosh3/github-actions-aggregator/pkg/github"
9+
"github.com/moosh3/github-actions-aggregator/pkg/worker"
910
)
1011

11-
func StartServer(cfg *config.Config, db *db.Database, githubClient *github.Client) {
12+
func StartServer(cfg *config.Config, db *db.Database, githubClient *github.Client, workerPool *worker.WorkerPool) {
1213
r := gin.Default()
1314

1415
// Public routes
1516
r.GET("/login", auth.GitHubLogin)
1617
r.GET("/callback", auth.GitHubCallback)
1718

1819
// Webhook route (exclude middleware that could interfere)
19-
webhookHandler := github.NewWebhookHandler(db, githubClient, cfg.GitHub.WebhookSecret)
20+
webhookHandler := github.NewWebhookHandler(db, githubClient, workerPool, cfg.GitHub.WebhookSecret)
2021
r.POST("/webhook", webhookHandler.HandleWebhook)
2122

2223
// Protected routes

0 commit comments

Comments
 (0)