remove as_str() legacy wrappers, callers use .into() directly
This commit is contained in:
parent
299add158f
commit
46456f75ce
25 changed files with 46 additions and 128 deletions
|
|
@ -92,10 +92,11 @@ pub async fn run_worker(coord: Arc<Coordinator>) {
|
|||
hive_jobq::scheduler::Scheduler::claim_next(&sched, move |id, kind, builder| {
|
||||
let coord = node_coord;
|
||||
async move {
|
||||
let kind_str = <&str>::from(&kind);
|
||||
tracing::info!(
|
||||
dag = coord.job_queue.root_of(id).unwrap_or_default(),
|
||||
node = id.get(),
|
||||
kind = kind.as_str(),
|
||||
kind = kind_str,
|
||||
agent = %kind.agent(),
|
||||
"job_queue: node running"
|
||||
);
|
||||
|
|
@ -104,7 +105,7 @@ pub async fn run_worker(coord: Arc<Coordinator>) {
|
|||
Ok(()) => tracing::info!(node = id.get(), "job_queue: node done"),
|
||||
Err(e) => tracing::warn!(
|
||||
node = id.get(),
|
||||
kind = kind.as_str(),
|
||||
kind = kind_str,
|
||||
agent = %kind.agent(),
|
||||
error = %format!("{e:#}"),
|
||||
grown_nodes = !grown.is_empty(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue