1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-28 18:58:30 +00:00

update config documentation, commit generated example config

also removes the no-op/useless "database_backend" config option

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-11-10 20:16:38 -05:00
parent 4ec5d1e28e
commit 08365bf5f4
5 changed files with 1846 additions and 958 deletions

View file

@ -59,7 +59,6 @@ pub(crate) async fn migrations(services: &Services) -> Result<()> {
async fn fresh(services: &Services) -> Result<()> {
let db = &services.db;
let config = &services.server.config;
services
.globals
@ -73,10 +72,7 @@ async fn fresh(services: &Services) -> Result<()> {
// Create the admin room and server user on first run
crate::admin::create_admin_room(services).boxed().await?;
warn!(
"Created new {} database with version {DATABASE_VERSION}",
config.database_backend,
);
warn!("Created new RocksDB database with version {DATABASE_VERSION}");
Ok(())
}
@ -201,10 +197,7 @@ async fn migrate(services: &Services) -> Result<()> {
}
}
info!(
"Loaded {} database with schema version {DATABASE_VERSION}",
config.database_backend,
);
info!("Loaded RocksDB database with schema version {DATABASE_VERSION}");
Ok(())
}