mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-03 22:01:50 +00:00
Reduce high volume of strings from FedDest and ActualDest in resolver.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
9e539d0a22
commit
a748edd621
7 files changed
+59
-56
No files matched your search
@@ -11,7 +11,7 @@ use tuwunel_core::{
|
||||
};
|
||||
use tuwunel_database::{Cbor, Deserialized, Map};
|
||||
|
||||
use super::fed::FedDest;
|
||||
use super::{DestString, FedDest};
|
||||
|
||||
pub struct Cache {
|
||||
destinations: Arc<Map>,
|
||||
@@ -21,7 +21,7 @@ pub struct Cache {
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct CachedDest {
|
||||
pub dest: FedDest,
|
||||
pub host: String,
|
||||
pub host: DestString,
|
||||
pub expire: SystemTime,
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ pub struct CachedOverride {
|
||||
pub ips: IpAddrs,
|
||||
pub port: u16,
|
||||
pub expire: SystemTime,
|
||||
pub overriding: Option<String>,
|
||||
pub overriding: Option<DestString>,
|
||||
}
|
||||
|
||||
pub type IpAddrs = ArrayVec<IpAddr, MAX_IPS>;
|
||||
|
||||
Reference in new issue
Block a user