Skip to content

Commit 275cbf0

Browse files
rebase
1 parent 4424359 commit 275cbf0

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

disintegrate-postgres/src/event_store.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -206,23 +206,14 @@ where
206206
sqlx::query("SET TRANSACTION ISOLATION LEVEL SERIALIZABLE")
207207
.execute(&mut *tx)
208208
.await?;
209-
<<<<<<< HEAD
210-
=======
211-
let inv_events: i64 = sqlx::query_scalar(&format!(
212-
"SELECT count(*) FROM event WHERE {}",
213-
CriteriaBuilder::new(&query.change_origin(version)).build()
214-
))
215-
.fetch_one(&mut *tx)
216-
.await
217-
.map_err(map_concurrency_err)?;
218-
>>>>>>> ebf68a3 (add gin index)
219209

220210
if sqlx::query_scalar(&format!(
221211
"SELECT EXISTS (SELECT 1 FROM event WHERE {})",
222212
CriteriaBuilder::new(&query.change_origin(version)).build()
223213
))
224214
.fetch_one(&mut *tx)
225-
.await? {
215+
.await?
216+
{
226217
return Err(Error::Concurrency);
227218
}
228219

0 commit comments

Comments
 (0)