mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
fix(unfurl): cache empty results briefly and key entries by provider (#1838)
This commit is contained in:
1 parent
f276bb1cd2
commit
c8ff177f85
4 files changed
+687
-68
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user