Add large parts of the permission editor

This commit is contained in:
2024-04-26 00:30:32 +02:00
parent 0837ac9fc7
commit b0bffc45ee
9 changed files with 546 additions and 128 deletions

View File

@@ -119,10 +119,10 @@ pub async fn mysql_connection_from_config(config: Config) -> anyhow::Result<MySq
.port(config.mysql.port.unwrap_or(3306))
.database("mysql")
.connect(),
).await {
)
.await
{
Ok(conn) => conn.context("Failed to connect to MySQL"),
Err(_) => {
Err(anyhow!("Timed out after 2 seconds")).context("Failed to connect to MySQL")
}
Err(_) => Err(anyhow!("Timed out after 2 seconds")).context("Failed to connect to MySQL"),
}
}