mirror of
https://github.com/mmahdium/TGSS.git
synced 2026-08-14 17:52:49 +03:30
feat: add feed cache implementation and integrate with channel handler
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user