chore(prefetch): rename workspace crate

This commit is contained in:
Edison Jwa
2026-06-02 13:33:41 +09:00
parent 71b7502ab7
commit 7d47a1e14b
4 changed files with 19 additions and 19 deletions
Generated
+11 -11
View File
@@ -470,8 +470,8 @@ version = "0.2.0-beta.1"
dependencies = [ dependencies = [
"chanora_audio", "chanora_audio",
"chanora_diagnostics", "chanora_diagnostics",
"chanora_prefetch",
"chanora_protocol", "chanora_protocol",
"chanora_server_prefetch",
"chanora_state", "chanora_state",
"chanora_storage", "chanora_storage",
"rusqlite", "rusqlite",
@@ -489,6 +489,16 @@ dependencies = [
"tracing-subscriber", "tracing-subscriber",
] ]
[[package]]
name = "chanora_prefetch"
version = "0.2.0-beta.1"
dependencies = [
"chanora_resolver",
"thiserror 2.0.18",
"tokio",
"tracing",
]
[[package]] [[package]]
name = "chanora_protocol" name = "chanora_protocol"
version = "0.2.0-beta.1" version = "0.2.0-beta.1"
@@ -521,16 +531,6 @@ dependencies = [
"tracing-subscriber", "tracing-subscriber",
] ]
[[package]]
name = "chanora_server_prefetch"
version = "0.2.0-beta.1"
dependencies = [
"chanora_resolver",
"thiserror 2.0.18",
"tokio",
"tracing",
]
[[package]] [[package]]
name = "chanora_state" name = "chanora_state"
version = "0.2.0-beta.1" version = "0.2.0-beta.1"
+2 -2
View File
@@ -12,7 +12,7 @@
# crates/chanora_audio/ — capture, DSP, Opus, jitter, mixer # crates/chanora_audio/ — capture, DSP, Opus, jitter, mixer
# crates/chanora_storage/ — bookmarks, settings, identity refs # crates/chanora_storage/ — bookmarks, settings, identity refs
# crates/chanora_diagnostics/ — logs, redaction, export # crates/chanora_diagnostics/ — logs, redaction, export
# crates/chanora_server_prefetch — server-resolution prefetch cache/policy # crates/chanora_prefetch — server-resolution prefetch cache/policy
# crates/chanora_bridge/ — Flutter/Rust typed DTOs + glue # crates/chanora_bridge/ — Flutter/Rust typed DTOs + glue
# #
# The Flutter app is not part of this Cargo workspace; it is owned by # The Flutter app is not part of this Cargo workspace; it is owned by
@@ -31,7 +31,7 @@ members = [
"crates/chanora_audio", "crates/chanora_audio",
"crates/chanora_storage", "crates/chanora_storage",
"crates/chanora_diagnostics", "crates/chanora_diagnostics",
"crates/chanora_server_prefetch", "crates/chanora_prefetch",
"crates/chanora_bridge", "crates/chanora_bridge",
"crates/chanora_resolver", "crates/chanora_resolver",
] ]
@@ -1,5 +1,5 @@
[package] [package]
name = "chanora_server_prefetch" name = "chanora_prefetch"
description = "Chanora — server-address prefetch cache and policy built on chanora_resolver." description = "Chanora — server-address prefetch cache and policy built on chanora_resolver."
version.workspace = true version.workspace = true
edition.workspace = true edition.workspace = true
@@ -116,12 +116,12 @@ impl ServerPrefetcher {
}; };
let cache = self.cache.clone(); let cache = self.cache.clone();
tokio::spawn(async move { tokio::spawn(async move {
info!(target: "chanora_server_prefetch", host = %normalized, "resolution prefetch started"); info!(target: "chanora_prefetch", host = %normalized, "resolution prefetch started");
let result = resolve_socket(resolver, &normalized).await; let result = resolve_socket(resolver, &normalized).await;
match result { match result {
Ok(addr) => { Ok(addr) => {
info!( info!(
target: "chanora_server_prefetch", target: "chanora_prefetch",
host = %normalized, host = %normalized,
resolved = %addr, resolved = %addr,
"resolution prefetch result" "resolution prefetch result"
@@ -131,7 +131,7 @@ impl ServerPrefetcher {
} }
Err(err) => { Err(err) => {
warn!( warn!(
target: "chanora_server_prefetch", target: "chanora_prefetch",
host = %normalized, host = %normalized,
error = %err, error = %err,
"resolution prefetch failed" "resolution prefetch failed"
@@ -150,7 +150,7 @@ impl ServerPrefetcher {
match resolved { match resolved {
Some(addr) => { Some(addr) => {
info!( info!(
target: "chanora_server_prefetch", target: "chanora_prefetch",
host = %host, host = %host,
resolved = %addr, resolved = %addr,
"connect using prefetched resolution" "connect using prefetched resolution"
@@ -158,7 +158,7 @@ impl ServerPrefetcher {
Some(addr) Some(addr)
} }
None => { None => {
debug!(target: "chanora_server_prefetch", host = %host, "connect prefetch miss or stale"); debug!(target: "chanora_prefetch", host = %host, "connect prefetch miss or stale");
None None
} }
} }