fallback identicons

This commit is contained in:
galister
2026-01-04 13:41:26 +09:00
parent 3e4174994d
commit b0763beb4a
4 changed files with 175 additions and 13 deletions

View File

@@ -17,6 +17,10 @@ fn get_cache_root() -> PathBuf {
CACHE_ROOT_PATH.clone()
}
pub fn get_path(data_path: &str) -> PathBuf {
get_cache_root().join(data_path)
}
// todo: mutex
pub async fn get_data(data_path: &str) -> Option<Vec<u8>> {
let mut path = get_cache_root();