mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-08 18:35:06 +03:00
Reduce scrypt work factor to speed up websocket authentication
Co-authored-by: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
parent
9633a4b527
commit
623133ffa0
@ -97,7 +97,7 @@ fn hash_access_token(token: &str) -> Result<String> {
|
||||
let params = if cfg!(debug_assertions) {
|
||||
scrypt::Params::new(1, 1, 1).unwrap()
|
||||
} else {
|
||||
scrypt::Params::recommended()
|
||||
scrypt::Params::new(14, 8, 1).unwrap()
|
||||
};
|
||||
|
||||
Ok(Scrypt
|
||||
|
Loading…
Reference in New Issue
Block a user