Style
This commit is contained in:
parent
a1a7b200c0
commit
7bf7790e1f
3 changed files with 2 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ impl Config {
|
||||||
pub async fn load_from_file(path: &Path) -> Result<Self> {
|
pub async fn load_from_file(path: &Path) -> Result<Self> {
|
||||||
let contents = fs::read_to_string(path).await.with_context(|| {
|
let contents = fs::read_to_string(path).await.with_context(|| {
|
||||||
format!(
|
format!(
|
||||||
"Cannot load configuration from disk from ({})",
|
"Cannot load configuration from disk from {}",
|
||||||
path.display()
|
path.display()
|
||||||
)
|
)
|
||||||
})?;
|
})?;
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ impl Database {
|
||||||
.test_before_acquire(true)
|
.test_before_acquire(true)
|
||||||
.connect_with(connection_options)
|
.connect_with(connection_options)
|
||||||
.await
|
.await
|
||||||
.with_context(|| format!("Cannot open database at '{}'", file_name.display()))?;
|
.with_context(|| format!("Cannot open database at {}", file_name.display()))?;
|
||||||
|
|
||||||
Self::run_migrations(&pool).await?;
|
Self::run_migrations(&pool).await?;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -254,8 +254,6 @@ export class Database {
|
||||||
}
|
}
|
||||||
|
|
||||||
private save(): void {
|
private save(): void {
|
||||||
this.logger.debug(JSON.stringify(this.documents, null, 2));
|
|
||||||
|
|
||||||
this.ensureConsistency();
|
this.ensureConsistency();
|
||||||
void this.saveData({
|
void this.saveData({
|
||||||
documents: this.resolvedDocuments.map(
|
documents: this.resolvedDocuments.map(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue