rrd: selective code style clean-up

Selective because there are quite a few more such old-style format
strings, but I had those already adapted and currently do not have
time do clean-up tree-wide, but it's fine to change this
incrementally.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2024-11-25 17:46:42 +01:00
parent 08cee13c03
commit 993e1fc878

View File

@ -285,13 +285,9 @@ fn apply_and_commit_journal_thread(
match apply_journal_impl(Arc::clone(&state), Arc::clone(&rrd_map)) {
Ok(entries) => {
let elapsed = start_time.elapsed().unwrap().as_secs_f64();
log::info!(
"applied rrd journal ({} entries in {:.3} seconds)",
entries,
elapsed
);
log::info!("applied rrd journal ({entries} entries in {elapsed:.3} seconds)");
}
Err(err) => bail!("apply rrd journal failed - {}", err),
Err(err) => bail!("apply rrd journal failed - {err}"),
}
}
@ -302,12 +298,10 @@ fn apply_and_commit_journal_thread(
Ok(rrd_file_count) => {
let elapsed = start_time.elapsed().unwrap().as_secs_f64();
log::info!(
"rrd journal successfully committed ({} files in {:.3} seconds)",
rrd_file_count,
elapsed
"rrd journal successfully committed ({rrd_file_count} files in {elapsed:.3} seconds)"
);
}
Err(err) => bail!("rrd journal commit failed: {}", err),
Err(err) => bail!("rrd journal commit failed: {err}"),
}
Ok(())
}