1
0
Fork 0
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:
johannesd3 2021-03-19 23:09:38 +01:00
parent 4925adb4f1
commit e9dc9cd839
No known key found for this signature in database
GPG key ID: 8C2739E91D410F75
5 changed files with 202 additions and 35 deletions

View file

@ -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);