mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-02 08:00:55 -05:00
* Read-only API keys Co-authored-by: Luis Cossío <luis.cossio@outlook.com> Correct placement of OpenAPI security Place regex dep with actix/tonic * Read-only API keys * Replace with pytests * API Key tests run on the same job * Drop allow dead-code * Rename setting key * Containerized tests * No special config files * DRY * refactor: re-use can_write method * refactor: replace static by constants * refactor: get PID from `$!` * refactor: use explicit brackets on boolean condition * style: fix identation * small fixes + account for new APIs * specify security in openapi * small fix + chmod for .sh testfile * add best-efford check for api consistency --------- Co-authored-by: Amr Hassan <amr.hassan@gmail.com> Co-authored-by: generall <andrey@vasnetsov.com>
6 lines
212 B
Rust
6 lines
212 B
Rust
/// Constant-time equality for String types
|
|
#[inline]
|
|
pub fn ct_eq(lhs: impl AsRef<str>, rhs: impl AsRef<str>) -> bool {
|
|
constant_time_eq::constant_time_eq(lhs.as_ref().as_bytes(), rhs.as_ref().as_bytes())
|
|
}
|