From 19fe8c4fbce84cc8dab6678d38653fa304bd26ff Mon Sep 17 00:00:00 2001 From: ymgyt Date: Fri, 15 Mar 2024 11:55:30 +0900 Subject: [PATCH] refactor(auth): rename device flow poll method --- crates/synd_auth/src/device_flow/github.rs | 4 ++-- crates/synd_term/src/application/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/synd_auth/src/device_flow/github.rs b/crates/synd_auth/src/device_flow/github.rs index 783cc4a5..ceb2933b 100644 --- a/crates/synd_auth/src/device_flow/github.rs +++ b/crates/synd_auth/src/device_flow/github.rs @@ -88,7 +88,7 @@ impl DeviceFlow { Ok(response) } - pub async fn pool_device_access_token( + pub async fn poll_device_access_token( &self, device_code: String, interval: Option, @@ -166,6 +166,6 @@ impl DeviceFlow { callback(verification_uri, user_code).await; - self.pool_device_access_token(device_code, interval).await + self.poll_device_access_token(device_code, interval).await } } diff --git a/crates/synd_term/src/application/mod.rs b/crates/synd_term/src/application/mod.rs index e2fb7383..0b6afe9e 100644 --- a/crates/synd_term/src/application/mod.rs +++ b/crates/synd_term/src/application/mod.rs @@ -695,7 +695,7 @@ impl Application { let device_flow = self.config.github_device_flow.clone(); let fut = async move { match device_flow - .pool_device_access_token( + .poll_device_access_token( device_authorization.device_code, device_authorization.interval, )