This commit is contained in:
Alek Westover
2023-06-15 10:20:01 -04:00
parent 7465c644b9
commit 214ecacfc4
8 changed files with 60 additions and 27 deletions

View File

@@ -17,6 +17,8 @@ use tokio::task;
use tracing::{error, info};
use tracing_utils::http::OtelName;
use crate::extension_server;
fn status_response_from_state(state: &ComputeState) -> ComputeStatusResponse {
ComputeStatusResponse {
start_time: state.start_time,
@@ -133,7 +135,8 @@ async fn routes(req: Request<Body>, compute: &Arc<ComputeNode>) -> Response<Body
filename
);
match download_file(&filename).await {
// TODO : left off here...
match extension_server::download_file(&filename).await {
Ok(_) => Response::new(Body::from("OK")),
Err(e) => {
error!("download_file failed: {}", e);