Began work to add entry point.

This commit is contained in:
2023-01-11 09:10:15 -05:00
parent d09474bb14
commit b5b0016aba
2 changed files with 61 additions and 10 deletions

View File

@ -130,7 +130,7 @@ impl MoreThanText {
}
None => match read(Path::new(&self.filename(id))).await {
Ok(content) => {
let data = CacheEntry::new(CacheType::from_bytes(content));
let data = CacheEntry::new(CacheType::from_bytes(content).unwrap());
cache.insert(id.to_string(), data.clone());
Ok(data)
}