chore(prefetch): rename workspace crate
This commit is contained in:
Generated
+11
-11
@@ -470,8 +470,8 @@ version = "0.2.0-beta.1"
|
||||
dependencies = [
|
||||
"chanora_audio",
|
||||
"chanora_diagnostics",
|
||||
"chanora_prefetch",
|
||||
"chanora_protocol",
|
||||
"chanora_server_prefetch",
|
||||
"chanora_state",
|
||||
"chanora_storage",
|
||||
"rusqlite",
|
||||
@@ -489,6 +489,16 @@ dependencies = [
|
||||
"tracing-subscriber",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "chanora_prefetch"
|
||||
version = "0.2.0-beta.1"
|
||||
dependencies = [
|
||||
"chanora_resolver",
|
||||
"thiserror 2.0.18",
|
||||
"tokio",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "chanora_protocol"
|
||||
version = "0.2.0-beta.1"
|
||||
@@ -521,16 +531,6 @@ dependencies = [
|
||||
"tracing-subscriber",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "chanora_server_prefetch"
|
||||
version = "0.2.0-beta.1"
|
||||
dependencies = [
|
||||
"chanora_resolver",
|
||||
"thiserror 2.0.18",
|
||||
"tokio",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "chanora_state"
|
||||
version = "0.2.0-beta.1"
|
||||
|
||||
+2
-2
@@ -12,7 +12,7 @@
|
||||
# crates/chanora_audio/ — capture, DSP, Opus, jitter, mixer
|
||||
# crates/chanora_storage/ — bookmarks, settings, identity refs
|
||||
# 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
|
||||
#
|
||||
# The Flutter app is not part of this Cargo workspace; it is owned by
|
||||
@@ -31,7 +31,7 @@ members = [
|
||||
"crates/chanora_audio",
|
||||
"crates/chanora_storage",
|
||||
"crates/chanora_diagnostics",
|
||||
"crates/chanora_server_prefetch",
|
||||
"crates/chanora_prefetch",
|
||||
"crates/chanora_bridge",
|
||||
"crates/chanora_resolver",
|
||||
]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "chanora_server_prefetch"
|
||||
name = "chanora_prefetch"
|
||||
description = "Chanora — server-address prefetch cache and policy built on chanora_resolver."
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
@@ -116,12 +116,12 @@ impl ServerPrefetcher {
|
||||
};
|
||||
let cache = self.cache.clone();
|
||||
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;
|
||||
match result {
|
||||
Ok(addr) => {
|
||||
info!(
|
||||
target: "chanora_server_prefetch",
|
||||
target: "chanora_prefetch",
|
||||
host = %normalized,
|
||||
resolved = %addr,
|
||||
"resolution prefetch result"
|
||||
@@ -131,7 +131,7 @@ impl ServerPrefetcher {
|
||||
}
|
||||
Err(err) => {
|
||||
warn!(
|
||||
target: "chanora_server_prefetch",
|
||||
target: "chanora_prefetch",
|
||||
host = %normalized,
|
||||
error = %err,
|
||||
"resolution prefetch failed"
|
||||
@@ -150,7 +150,7 @@ impl ServerPrefetcher {
|
||||
match resolved {
|
||||
Some(addr) => {
|
||||
info!(
|
||||
target: "chanora_server_prefetch",
|
||||
target: "chanora_prefetch",
|
||||
host = %host,
|
||||
resolved = %addr,
|
||||
"connect using prefetched resolution"
|
||||
@@ -158,7 +158,7 @@ impl ServerPrefetcher {
|
||||
Some(addr)
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user