fix(unfurl): cache empty results briefly and key entries by provider (#1838)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-24 12:28:32 +02:00
1 parent f276bb1cd2
commit c8ff177f85
4 files changed
+687 -68

No files matched your search

+2 -2
View File
@@ -40,11 +40,11 @@ async fn main() -> anyhow::Result<()> {
match config.mode {
Mode::Router => {
let router = UnfurlRouter::new(config.cache_max_entries);
let router = UnfurlRouter::new(config.cache_max_entries, config.cache_ttl);
fluxer_svc::router::run_router(&config, router, transport).await
}
Mode::Shard => {
let shard = UnfurlShard::new();
let shard = UnfurlShard::new(config.cache_ttl);
fluxer_svc::shard::run_shard(&config, shard, transport).await
}
}