fix var name and format warning
All checks were successful
Run Check Script / check (pull_request) Successful in 1m17s
All checks were successful
Run Check Script / check (pull_request) Successful in 1m17s
This commit is contained in:
parent
a27c7c2310
commit
8bcbe7a226
@ -15,15 +15,12 @@ pub struct SqliteInventoryRepository {
|
|||||||
|
|
||||||
impl SqliteInventoryRepository {
|
impl SqliteInventoryRepository {
|
||||||
pub async fn new(database_url: &str) -> Result<Self, RepoError> {
|
pub async fn new(database_url: &str) -> Result<Self, RepoError> {
|
||||||
let _pool = SqlitePool::connect(database_url)
|
let pool = SqlitePool::connect(database_url)
|
||||||
.await
|
.await
|
||||||
.map_err(|e| RepoError::ConnectionFailed(e.to_string()))?;
|
.map_err(|e| RepoError::ConnectionFailed(e.to_string()))?;
|
||||||
|
|
||||||
info!(
|
info!("SQLite inventory repository initialized at '{database_url}'");
|
||||||
"SQLite inventory repository initialized at '{}'",
|
Ok(Self { pool })
|
||||||
database_url,
|
|
||||||
);
|
|
||||||
Ok(Self { pool: _pool })
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user