Skip to content

Commit 69d5ea3

Browse files
authored
Merge branch 'main' into help-text
Signed-off-by: Nitish Tiwari <[email protected]>
2 parents c118cd8 + 631c8f4 commit 69d5ea3

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

server/src/banner.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,4 @@ async fn storage_info(config: &Config) {
127127
storage.get_endpoint(),
128128
latency
129129
);
130-
131130
}

server/src/localcache.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ impl LocalCacheManager {
101101
fs::create_dir_all(&self.cache_path).await?;
102102
let path = cache_meta_path(&self.cache_path)
103103
.map_err(|err| CacheError::ObjectStoreError(err.into()))?;
104-
105104
let resp = self
106105
.filesystem
107106
.get(&path)

server/src/option.rs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,25 @@ impl Server {
418418
.value_parser(validation::cache_size)
419419
.help("Maximum allowed cache size for all streams combined (In human readable format, e.g 1GiB, 2GiB, 100MB)")
420420
.next_line_help(true),
421+
)
422+
.arg(
423+
Arg::new(Self::CACHE)
424+
.long(Self::CACHE)
425+
.env("P_CACHE_DIR")
426+
.value_name("DIR")
427+
.value_parser(validation::canonicalize_path)
428+
.help("Local path to be used for caching latest files")
429+
.next_line_help(true),
430+
)
431+
.arg(
432+
Arg::new(Self::CACHE_SIZE)
433+
.long(Self::CACHE_SIZE)
434+
.env("P_CACHE_SIZE")
435+
.value_name("size")
436+
.default_value("1Gib")
437+
.value_parser(validation::human_size_to_bytes)
438+
.help("Size for cache in human readable format (e.g 1GiB, 2GiB, 100MB)")
439+
.next_line_help(true),
421440
)
422441
.arg(
423442
Arg::new(Self::UPLOAD_INTERVAL)
@@ -692,5 +711,4 @@ pub mod validation {
692711
}
693712
Ok(u)
694713
}
695-
696714
}

0 commit comments

Comments
 (0)