Skip to content

Commit

Permalink
implement map purging
Browse files Browse the repository at this point in the history
  • Loading branch information
varex83 committed Oct 18, 2023
1 parent fd0f36d commit 2b42e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/utils/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub const TEMP_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/", "temp/");

pub const DEFAULT_CAIRO_VERSION: &str = "v2.2.0";

pub const DURATION_TO_PURGE: u64 = 5; // 5 seconds
pub const DURATION_TO_PURGE: u64 = 60 * 5; // 5 minutes

pub fn get_file_ext(file_path: &str) -> String {
match file_path.split('.').last() {
Expand Down

0 comments on commit 2b42e8c

Please sign in to comment.