This commit is contained in:
Conrad Ludgate
2025-01-14 12:32:50 +00:00
parent 97d0147ed9
commit f64a240888
+2 -1
View File
@@ -100,7 +100,8 @@ pub(crate) type NodeInfoCache =
TimedLru<EndpointCacheKey, Result<NodeInfo, Box<ControlPlaneErrorMessage>>>;
pub(crate) type CachedNodeInfo = Cached<&'static NodeInfoCache, NodeInfo>;
pub(crate) type CachedRoleSecret = Cached<&'static ProjectInfoCacheImpl, Option<AuthSecret>>;
pub(crate) type CachedAllowedIps = Cached<&'static ProjectInfoCacheImpl, Arc<(Vec<IpPattern>, Vec<AuthRule>)>>;
pub(crate) type CachedAllowedIps =
Cached<&'static ProjectInfoCacheImpl, Arc<(Vec<IpPattern>, Vec<AuthRule>)>>;
/// This will allocate per each call, but the http requests alone
/// already require a few allocations, so it should be fine.