Fix redis pool timeout (#669)

* Fix redis pool timeout

* remove search dep project issues

* run fmt + prep
This commit is contained in:
Geometrically
2023-08-06 15:34:03 -07:00
committed by GitHub
parent 1f4ad732fd
commit e9f5bd4ac1
8 changed files with 191 additions and 219 deletions

View File

@@ -21,7 +21,7 @@ pub async fn fetch_bearer(token: &str, uhs: &str) -> Result<String, Authenticati
.get("access_token")
.and_then(serde_json::Value::as_str)
.map(String::from)
.ok_or(AuthenticationError::Custom(
format!("Response didn't contain valid bearer token. body: {body}"),
))
.ok_or(AuthenticationError::Custom(format!(
"Response didn't contain valid bearer token. body: {body}"
)))
}