···1919`$LUMINAFOLDER/.env`.
20202121| NAME | DEFAULT | FOR |
2222-|----------------------------|----------------------|----------------------------------------------------------------------------------------------------------------------------|
2222+| -------------------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------- |
2323| `LUMINA_POSTGRES_PORT` | `5432` | The port to contact the database on. |
2424| `LUMINA_POSTGRES_HOST` | `localhost` | The address to contact the database on. |
2525| `LUMINA_POSTGRES_USERNAME` | `lumina` | The username to log in to the database with. |
···1616 let redis_pool: Pool<redis::Client> = {
1717 info_elog!(ev_log, "Setting up Redis connection to {}...", redis_url);
1818 let client = redis::Client::open(redis_url.clone()).map_err(LuminaError::Redis)?;
1919- Pool::builder()
2020- .build(client)
2121- .map_err(LuminaError::R2D2Pool)
1919+ Pool::builder().build(client).map_err(LuminaError::R2D2Pool)
2220 }?;
2321 success_elog!(
2422 ev_log,
···161159pub(crate) enum DbConn {
162160 // The config is also shared, so that for example the logger can set up its own connection, use this sparingly.
163161 /// The main database is a Postgres database in this variant.
164164- PgsqlConnection(
165165- (Client, postgres::Config),
166166- Pool<redis::Client>,
167167- ),
162162+ PgsqlConnection((Client, postgres::Config), Pool<redis::Client>),
168163}
169164170165impl DbConn {
···268263269264// Check for timeline changes and invalidate caches accordingly (PostgreSQL)
270265async fn check_timeline_invalidations(
271271- redis_conn: &mut redis::Connection,
272272- client: &Client,
266266+ redis_conn: &mut redis::Connection,
267267+ client: &Client,
273268) -> Result<(), LuminaError> {
274269 // Get the last check timestamp
275270 let last_check: Option<String> = redis_conn.get("timeline_cache_last_check").unwrap_or(None);