mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
Fix
This commit is contained in:
@@ -147,7 +147,7 @@ impl super::Api for Api {
|
||||
_extra: &ConsoleReqExtra,
|
||||
creds: &ComputeUserInfo,
|
||||
) -> Result<Option<AuthSecret>, GetAuthInfoError> {
|
||||
self.do_get_auth_info(creds).await?.secret.map(Ok)
|
||||
Ok(self.do_get_auth_info(creds).await?.secret)
|
||||
}
|
||||
|
||||
async fn get_allowed_ips(
|
||||
@@ -155,11 +155,7 @@ impl super::Api for Api {
|
||||
_extra: &ConsoleReqExtra,
|
||||
creds: &ComputeUserInfo,
|
||||
) -> Result<Arc<Vec<String>>, GetAuthInfoError> {
|
||||
self.do_get_auth_info(creds)
|
||||
.await?
|
||||
.allowed_ips
|
||||
.map(Arc::new)
|
||||
.map(Ok)
|
||||
Ok(Arc::new(self.do_get_auth_info(creds).await?.allowed_ips))
|
||||
}
|
||||
|
||||
#[tracing::instrument(skip_all)]
|
||||
|
||||
Reference in New Issue
Block a user