mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-04 02:09:26 +02:00
Add size limit to cache
This commit is contained in:
parent
4925adb4f1
commit
e9dc9cd839
5 changed files with 202 additions and 35 deletions
|
@ -367,7 +367,7 @@ fn get_setup(args: &[String]) -> Setup {
|
|||
.map(|p| p.into());
|
||||
}
|
||||
|
||||
match Cache::new(system_dir, audio_dir) {
|
||||
match Cache::new(system_dir, audio_dir, Some(50_000_000)) {
|
||||
Ok(cache) => Some(cache),
|
||||
Err(e) => {
|
||||
warn!("Cannot create cache: {}", e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue