forked from MightyPork/elefren-fork
all asyncified except for streaming
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@ use crate::{errors::Result, registration::Registered, Mastodon};
|
||||
|
||||
/// Finishes the authentication process for the given `Registered` object,
|
||||
/// using the command-line
|
||||
pub fn authenticate(registration: Registered) -> Result<Mastodon> {
|
||||
pub async fn authenticate(registration: Registered) -> Result<Mastodon> {
|
||||
let url = registration.authorize_url()?;
|
||||
|
||||
let stdout = io::stdout();
|
||||
@@ -20,5 +20,5 @@ pub fn authenticate(registration: Registered) -> Result<Mastodon> {
|
||||
let mut input = String::new();
|
||||
stdin.read_line(&mut input)?;
|
||||
let code = input.trim();
|
||||
registration.complete(code)
|
||||
registration.complete(code).await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user