Use Timestamp primitive
This commit is contained in:
parent
7a6984aedc
commit
5e52c6f2be
13 changed files with 53 additions and 42 deletions
|
|
@ -21,6 +21,7 @@ use time::OffsetDateTime;
|
|||
|
||||
use crate::{
|
||||
config::ServerConfig,
|
||||
primitive::Timestamp,
|
||||
server::{
|
||||
web::paths::{
|
||||
PathApiWorkerBenchRepoByHashTreeTarGz, PathApiWorkerRepoByHashTreeTarGz,
|
||||
|
|
@ -174,7 +175,7 @@ pub async fn post_api_worker_status(
|
|||
}
|
||||
guard.update(
|
||||
name.clone(),
|
||||
WorkerInfo::new(request.secret, OffsetDateTime::now_utc(), request.status),
|
||||
WorkerInfo::new(request.secret, Timestamp::now(), request.status),
|
||||
);
|
||||
let work = match request.request_run {
|
||||
true => guard.find_and_reserve_run(&name, &queue, bench_method),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue