Fix a few bugs from combining features
This commit is contained in:
parent
475b256a5a
commit
0ea4c62731
|
@ -7,7 +7,7 @@ use std::{fmt::Display, collections::VecDeque, hash::Hash, time::{Duration, Inst
|
||||||
/// Does not require a leaky bucket thread to empty it out, but may occassionally need to
|
/// Does not require a leaky bucket thread to empty it out, but may occassionally need to
|
||||||
/// trim old keys using [`trim_keys()`].
|
/// trim old keys using [`trim_keys()`].
|
||||||
///
|
///
|
||||||
/// [`trim_keys()`][Self::trim_keys()]
|
/// [`trim_keys()`]: Self::trim_keys()
|
||||||
pub struct RateLimiter<K: Eq + Hash> {
|
pub struct RateLimiter<K: Eq + Hash> {
|
||||||
log: DashMap<K, VecDeque<Instant>>,
|
log: DashMap<K, VecDeque<Instant>>,
|
||||||
burst: usize,
|
burst: usize,
|
||||||
|
|
|
@ -84,7 +84,7 @@ pub trait UserManagementRoutes: private::Sealed {
|
||||||
F: Send + Sync + 'static + Future<Output = Result<Response>>;
|
F: Send + Sync + 'static + Future<Output = Result<Response>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<A: ToSocketAddrs> UserManagementRoutes for crate::Builder<A> {
|
impl<A: ToSocketAddrs> UserManagementRoutes for crate::Server<A> {
|
||||||
/// Add pre-configured routes to the serve to handle authentication
|
/// Add pre-configured routes to the serve to handle authentication
|
||||||
///
|
///
|
||||||
/// See [`UserManagementRoutes::add_um_routes()`]
|
/// See [`UserManagementRoutes::add_um_routes()`]
|
||||||
|
@ -357,5 +357,5 @@ fn render_settings_menu<UserData: Serialize + DeserializeOwned>(
|
||||||
|
|
||||||
mod private {
|
mod private {
|
||||||
pub trait Sealed {}
|
pub trait Sealed {}
|
||||||
impl<A> Sealed for crate::Builder<A> {}
|
impl<A> Sealed for crate::Server<A> {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue