Skip to content

Commit

Permalink
Prepare crates.io release
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywonchung committed May 28, 2024
1 parent 6093303 commit 992954b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion zeusd/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion zeusd/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "zeusd"
name = "zeus"
version = "0.1.0"
authors = ["Jae-Won Chung <[email protected]>"]
description = "Zeus daemon"
Expand Down
12 changes: 6 additions & 6 deletions zeusd/src/routes/gpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use actix_web::{web, HttpResponse};
use paste::paste;
use serde::{Deserialize, Serialize};
use std::time::Instant;

use crate::devices::gpu::{GpuCommand, GpuManagementTasks};
use crate::error::ZeusdError;
Expand Down Expand Up @@ -59,16 +60,15 @@ macro_rules! impl_handler_for_gpu_command {
request: web::Json<[<$api:camel>]>,
device_tasks: web::Data<GpuManagementTasks>,
) -> Result<HttpResponse, ZeusdError> {
let now = std::time::Instant::now();
let gpu_id = gpu_id.into_inner();
let request = request.into_inner();
let now = Instant::now();

tracing::info!("Received request");

let gpu_id = gpu_id.into_inner();
let request = request.into_inner();

if request.block {
device_tasks
.send_command_blocking(gpu_id, request.into(), now)
.await?;
device_tasks.send_command_blocking(gpu_id, request.into(), now).await?;
} else {
device_tasks.send_command_nonblocking(gpu_id, request.into(), now)?;
}
Expand Down

0 comments on commit 992954b

Please sign in to comment.