Update deps

This commit is contained in:
Aode (lion)
2021-11-22 18:38:58 -06:00
parent 8021dca1dd
commit e1c61d5b5f
3 changed files with 101 additions and 73 deletions
+8
View File
@@ -18,14 +18,22 @@ impl Resolver for RelayResolver {
type Error = RelayError;
fn find(
scheme: Option<&str>,
account: &str,
domain: &str,
(state, config): Self::State,
) -> LocalBoxFuture<'static, Result<Option<Webfinger>, Self::Error>> {
let domain = domain.to_owned();
let account = account.to_owned();
let scheme = scheme.map(|s| s.to_owned());
let fut = async move {
if let Some(scheme) = scheme {
if scheme != "acct:" {
return Ok(None);
}
}
if domain != config.hostname() {
return Ok(None);
}