feat: add feed cache implementation and integrate with channel handler

This commit is contained in:
2026-03-11 18:13:22 +03:30
parent 5a37903a72
commit 71a2c756c2
5 changed files with 128 additions and 15 deletions
-1
View File
@@ -52,7 +52,6 @@ func RegisterRoutes(params RouterParams) {
// TODO: improve accurecy in rss channel fields
// TODO: add ui with templates under /setup with fetch
// TODO: add gin level cache (look for higher limit)
// TODO: image endpoint + hash and expiry
authStatCtx, cancel := context.WithTimeout(context.Background(), config.AuthStatusTimeout)
authStat, err := params.TgService.AuthStatus(authStatCtx)
+1 -1
View File
@@ -54,7 +54,7 @@ func (r *RateLimiter) CleanupRateLimiter() {
}
func RegisterCleanup(lc fx.Lifecycle, logger *zap.Logger, r *RateLimiter) {
func RegisterRateLimiterCleanup(lc fx.Lifecycle, logger *zap.Logger, r *RateLimiter) {
var ticker *time.Ticker
var stopChan chan struct{}