feat: add custom error types, remove anyhow
This commit is contained in:
parent
1297bcb641
commit
a3e3269fb3
16 changed files with 385 additions and 184 deletions
|
|
@ -7,7 +7,7 @@ use std::{
|
|||
|
||||
use log::error;
|
||||
|
||||
pub trait CacheStorage {
|
||||
pub trait CacheStorage: Sync + Send {
|
||||
fn write(&self, data: &str);
|
||||
fn read(&self) -> Option<String>;
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue