chore: format
This commit is contained in:
parent
c855681b0c
commit
3d11e6d519
1 changed files with 7 additions and 1 deletions
|
@ -33,7 +33,13 @@ pub async fn should_nyaify(reader_user_id: &str) -> Result<bool, Error> {
|
||||||
.await?
|
.await?
|
||||||
.ok_or_else(|| Error::NotFound(reader_user_id.to_owned()))?;
|
.ok_or_else(|| Error::NotFound(reader_user_id.to_owned()))?;
|
||||||
|
|
||||||
cache::set_one(cache::Category::CatLang, reader_user_id, &fetched_value, 10 * 60).await?;
|
cache::set_one(
|
||||||
|
cache::Category::CatLang,
|
||||||
|
reader_user_id,
|
||||||
|
&fetched_value,
|
||||||
|
10 * 60,
|
||||||
|
)
|
||||||
|
.await?;
|
||||||
|
|
||||||
Ok(fetched_value)
|
Ok(fetched_value)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue