Remove unnecessary braces
This removes the unnecessary braces around the splinter database
initialization results.  These braces were required due to a previously
removed feature.
@@ -81,7 +81,6 @@ pub fn run_splinter(config: GridConfig) -> Result<(), DaemonError> {
ConnectionPool::new(config.database_url())
.map_err(|err| DaemonError::from_source(Box::new(err)))?;
- {
let commit_store = DieselCommitStore::new(connection_pool.pool.clone());
let commits = commit_store
.get_current_service_commits()
@@ -93,14 +92,12 @@ pub fn run_splinter(config: GridConfig) -> Result<(), DaemonError> {
commits,
)
}
- }
#[cfg(feature = "database-sqlite")]
ConnectionUri::Sqlite(_) => {
let connection_pool: ConnectionPool<diesel::sqlite::SqliteConnection> =
ConnectionPool::new(config.database_url())
.map_err(|err| DaemonError::from_source(Box::new(err)))?;
- {
let commit_store = DieselCommitStore::new(connection_pool.pool.clone());
let commits = commit_store
.get_current_service_commits()
@@ -113,7 +110,6 @@ pub fn run_splinter(config: GridConfig) -> Result<(), DaemonError> {
)
}
}
- }
};
for commit in previous_commits {
