From 47ef36d1dbdd0e5992e0cc1759e3233f7d703248 Mon Sep 17 00:00:00 2001 From: Shuning Lin <86640627+ScottLinnn@users.noreply.github.com> Date: Wed, 1 May 2024 22:09:12 -0400 Subject: [PATCH] Client refinement (#12) * enhance test for async api * avoid dup file name corruption * fmtted * update version num * update version num * fix relative path * update version num * add log * update version num * fix an important typo * update version num * change local dir path * update version num --- client/Cargo.toml | 2 +- client/src/storage_client.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/Cargo.toml b/client/Cargo.toml index 174a26c..d912117 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "istziio-client" -version = "0.1.12" +version = "0.2.0" edition = "2018" authors = ["Shuning Lin <86640627+ScottLinnn@users.noreply.github.com>", "J-HowHuang "] description = "Client application for ISTZIIO OLAP database I/O cache service" diff --git a/client/src/storage_client.rs b/client/src/storage_client.rs index efc4b9c..93f5b7e 100644 --- a/client/src/storage_client.rs +++ b/client/src/storage_client.rs @@ -61,8 +61,7 @@ impl StorageClientImpl { } pub fn local_cache_path() -> String { - let home = std::env::var("HOME").unwrap(); - String::from(home + "/istziio_client_cache/") + String::from("./istziio_client_cache/") } /// Fetch all data of a table, call get_path() to get the file name that stores the table