Skip to content

Commit c9d7925

Browse files
Hrant Novikovmeta-codesync[bot]
authored andcommitted
wire up dangling configs in DNSModule
Summary: all configs that have to do with managing DNS cache staleness are dangling in DNSModule, this diff fixes that. Reviewed By: hanidamlaj Differential Revision: D98268778 fbshipit-source-id: d245969b39fc59aef1d7367a2f0960f3f982d94f
1 parent 28b5cf5 commit c9d7925

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

proxygen/lib/dns/DNSModule.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ class DNSModule {
3838
auto resolver =
3939
CachingDNSResolver::newResolver(DNSResolver::UniquePtr(cares.release()),
4040
cacheMaxSize_,
41-
cacheClearSize_);
41+
cacheClearSize_,
42+
staleCacheSizeMultiplier_,
43+
staleCacheTTLMin_,
44+
staleCacheTTLScale_);
4245

4346
return DNSResolver::UniquePtr(resolver.release());
4447
}

0 commit comments

Comments
 (0)