chore(prefetch): rename workspace crate
This commit is contained in:
@@ -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