moved middleware event publisher to sse package

This commit is contained in:
2026-01-24 14:06:19 -07:00
parent 720c3fb4e0
commit a6267ac189
5 changed files with 33 additions and 20 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ import (
"ruben/inventory2/internal/logging"
"ruben/inventory2/internal/server/middleware"
"ruben/inventory2/internal/server/response"
"ruben/inventory2/internal/server/sse"
"strconv"
"github.com/gin-gonic/gin"
@@ -23,7 +24,7 @@ func Routes(
r *gin.RouterGroup,
logger *logging.Logger,
accts *accounts.Store,
pub *middleware.UpdateNotificationPublisher,
pub *sse.UpdateNotificationPublisher,
) {
as := &accountSubrouter{
log: logger,
+1 -1
View File
@@ -22,7 +22,7 @@ func Routes(
auth *middleware.Auth,
sq *sse.Queue,
accts *accounts.Store,
unp *middleware.UpdateNotificationPublisher,
unp *sse.UpdateNotificationPublisher,
rawEvents *raw_events.Store,
etsy *etsy_platform.Platform,
) {