mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-19 14:10:37 +00:00
async password validation (#7171)
## Problem password hashing can block main thread ## Summary of changes spawn_blocking the password hash call
This commit is contained in:
@@ -50,7 +50,7 @@ impl PoolingBackend {
|
||||
}
|
||||
};
|
||||
let auth_outcome =
|
||||
crate::auth::validate_password_and_exchange(&conn_info.password, secret)?;
|
||||
crate::auth::validate_password_and_exchange(&conn_info.password, secret).await?;
|
||||
let res = match auth_outcome {
|
||||
crate::sasl::Outcome::Success(key) => Ok(key),
|
||||
crate::sasl::Outcome::Failure(reason) => {
|
||||
|
||||
Reference in New Issue
Block a user