Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Remove task_id from download file path #87

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/node/src/storage/database/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use super::entity::{self};
use crate::types::{self, transaction::ProgramData, File, Hash, Program, Task};

const MAX_DB_CONNS: u32 = 64;
const DB_CONNECT_TIMEOUT: Duration = Duration::from_millis(750);
const DB_CONNECT_TIMEOUT: Duration = Duration::from_secs(30);

#[derive(Clone)]
pub struct Database {
Expand Down
2 changes: 1 addition & 1 deletion crates/shim/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl GRPCClient {
path: name.to_string(),
};

let file_path = Path::new(&self.workspace).join(task_id).join(name);
let file_path = Path::new(&self.workspace).join(name);
if let Some(parent) = file_path.parent() {
if let Ok(false) = tokio::fs::try_exists(parent).await {
if let Err(err) = tokio::fs::create_dir_all(parent).await {
Expand Down
Loading