mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
perf(api): replace polling for in-memory caches with signals (#35)
This commit is contained in:
1 parent
9c665413ac
commit
8f9daac8b0
9 files changed
+106
-38
No files matched your search
@@ -263,6 +263,8 @@ app.route('/', routes);
|
||||
app.onError(AppErrorHandler);
|
||||
app.notFound(AppNotFoundHandler);
|
||||
|
||||
const ipBanSubscriber = new Redis(Config.redis.url);
|
||||
ipBanCache.setRefreshSubscriber(ipBanSubscriber);
|
||||
await ipBanCache.initialize();
|
||||
|
||||
initializeMetricsService(Config.metrics.host ?? null);
|
||||
|
||||
Reference in new issue
Block a user