encap dep:chrono in time utils
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
8cf55c702f
commit
be2d1c722b
5 changed files with 13 additions and 7 deletions
|
@ -35,7 +35,6 @@ zstd_compression = [
|
|||
]
|
||||
|
||||
[dependencies]
|
||||
chrono.workspace = true
|
||||
conduit-core.workspace = true
|
||||
log.workspace = true
|
||||
ruma.workspace = true
|
||||
|
|
|
@ -4,8 +4,7 @@ use std::{
|
|||
sync::{atomic::AtomicU32, Arc, Mutex, RwLock},
|
||||
};
|
||||
|
||||
use chrono::{DateTime, Utc};
|
||||
use conduit::{debug, error, info, warn, Result, Server};
|
||||
use conduit::{debug, error, info, utils::time::rfc2822_from_seconds, warn, Result, Server};
|
||||
use rocksdb::{
|
||||
backup::{BackupEngine, BackupEngineOptions},
|
||||
perf::get_memory_usage_stats,
|
||||
|
@ -211,9 +210,7 @@ impl Engine {
|
|||
res,
|
||||
"#{} {}: {} bytes, {} files",
|
||||
info.backup_id,
|
||||
DateTime::<Utc>::from_timestamp(info.timestamp, 0)
|
||||
.unwrap_or_default()
|
||||
.to_rfc2822(),
|
||||
rfc2822_from_seconds(info.timestamp),
|
||||
info.size,
|
||||
info.num_files,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue