feat(ios,p0): iOS P0 platform, audio fixes, channel UX
This commit is contained in:
@@ -34,8 +34,7 @@ struct CacheEntry {
|
||||
at: Instant,
|
||||
}
|
||||
|
||||
static CACHE: Lazy<Mutex<HashMap<String, CacheEntry>>> =
|
||||
Lazy::new(|| Mutex::new(HashMap::new()));
|
||||
static CACHE: Lazy<Mutex<HashMap<String, CacheEntry>>> = Lazy::new(|| Mutex::new(HashMap::new()));
|
||||
|
||||
/// Resolve `host_input` to a list of socket addresses, preferring
|
||||
/// IPv4 over IPv6 so the upstream's first connect attempt is the
|
||||
@@ -189,8 +188,7 @@ mod tests {
|
||||
|
||||
#[tokio::test]
|
||||
async fn unresolvable_returns_dns_failed() {
|
||||
let r =
|
||||
resolve("nonexistent-server-for-chanora-tests.invalid").await;
|
||||
let r = resolve("nonexistent-server-for-chanora-tests.invalid").await;
|
||||
match r {
|
||||
Err(ProtocolError::DnsFailed { host, .. }) => {
|
||||
assert!(host.contains("nonexistent-server-for-chanora-tests.invalid"));
|
||||
|
||||
Reference in New Issue
Block a user