Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
0

Configure Feed

Select the types of activity you want to include in your feed.

import

+4 -5
+4 -5
who-am-i/src/oauth.rs
··· 9 9 KnownScope, OAuthClient, OAuthClientConfig, OAuthResolverConfig, Scope, 10 10 store::{session::MemorySessionStore, state::MemoryStateStore}, 11 11 }; 12 - use hickory_resolver::TokioResolver; 12 + use hickory_resolver::{ResolveError, TokioResolver}; 13 13 use serde::Deserialize; 14 14 use std::sync::Arc; 15 15 use thiserror::Error; ··· 50 50 #[error("failed to intiialize atrium client: {0}")] 51 51 AtriumClientError(atrium_oauth::Error), 52 52 #[error("failed to initialize hickory dns resolver: {0}")] 53 - HickoryResolverError(hickory_resolver::ResolveError), 53 + HickoryResolverError(ResolveError), 54 54 } 55 55 56 56 #[derive(Debug, Error)] ··· 194 194 pub struct HickoryDnsTxtResolver(TokioResolver); 195 195 196 196 impl HickoryDnsTxtResolver { 197 - fn new() -> Result<Self, hickory_resolver::ResolveError> { 198 - let resolver = TokioResolver::builder_tokio()?.build(); 199 - Ok(Self(resolver)) 197 + fn new() -> Result<Self, ResolveError> { 198 + Ok(Self(TokioResolver::builder_tokio()?.build())) 200 199 } 201 200 } 202 201