Annotate 2 TODOs
This commit is contained in:
parent
38cd3f0be3
commit
2f6da0f9fc
@ -18,7 +18,7 @@ pub struct IdCoopStore {
|
||||
|
||||
impl IdCoopStore {
|
||||
pub async fn connect(conn_str: &str) -> eyre::Result<Self> {
|
||||
// TODO We might support SQLite as well, so we might want to use an 'AnyPool' after
|
||||
// TODO(sqlite) We might support SQLite as well, so we might want to use an 'AnyPool' after
|
||||
// installing the requisite drivers here
|
||||
let db_pool = PgPool::connect(conn_str)
|
||||
.await
|
||||
|
@ -110,7 +110,7 @@ pub async fn serve(
|
||||
.layer(Extension(config))
|
||||
.layer(Extension(secrets))
|
||||
.layer(Extension(store))
|
||||
// TODO this limit should be configurable
|
||||
// TODO(v0.0.2) this limit should be configurable
|
||||
.layer(Extension(Arc::new(PasswordHashInflightLimiter::new(1))))
|
||||
.layer(client_ip_source.into_extension())
|
||||
.layer(Extension(Arc::new(ratelimiters)))
|
||||
|
Loading…
Reference in New Issue
Block a user