feat: implement rate‑limiter cleanup task and register it in the FX lifecycle.

This commit is contained in:
2026-03-11 16:05:21 +03:30
parent 4ebcc08fe1
commit a053d577ef
3 changed files with 63 additions and 16 deletions
+2
View File
@@ -17,6 +17,7 @@ func main() {
infra.NewLogger,
config.Load,
server.NewGin,
server.NewRateLimiter,
handlers.NewChannelHandler,
handlers.NewAuthHandler,
@@ -25,6 +26,7 @@ func main() {
),
telegram.Module,
fx.Invoke(server.RegisterRoutes),
fx.Invoke((server.RegisterCleanup)),
fx.Logger(infra.NewFXLogger()),
)