store: Fix formatting
@@ -258,14 +258,14 @@ impl BasicStore for Store {
use db_schema::entities::dsl::*;
let conn = self.conn.lock().unwrap();
- conn
- .transaction::<usize, result::Error, _>(|| {
+ conn.transaction::<usize, result::Error, _>(|| {
// Set session variable to store the source of the event
select(set_config(
"vars.current_event_source",
input_event_source.to_string(),
false,
- )).execute(&*conn).unwrap();
+ )).execute(&*conn)
+ .unwrap();
// Delete from DB where rows match the subgraph ID, entity name and ID
delete(
@@ -274,8 +274,7 @@ impl BasicStore for Store {
.filter(entity.eq(&key.entity))
.filter(id.eq(&key.id)),
).execute(&*conn)
- })
- .map(|_| ())
+ }).map(|_| ())
.map_err(|_| ())
}
