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 {
|
||||
pub async fn new(database_url: &str) -> Result<Self, RepoError> {
|
||||
let _pool = SqlitePool::connect(database_url)
|
||||
let pool = SqlitePool::connect(database_url)
|
||||
.await
|
||||
.map_err(|e| RepoError::ConnectionFailed(e.to_string()))?;
|
||||
|
||||
info!(
|
||||
"SQLite inventory repository initialized at '{}'",
|
||||
database_url,
|
||||
);
|
||||
Ok(Self { pool: _pool })
|
||||
info!("SQLite inventory repository initialized at '{database_url}'");
|
||||
Ok(Self { pool })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user