Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Check the correct serialization failure code when retrying transaction

Antonio Scandurraae11e4f798f8
diff --git a/crates/collab/src/db.rs b/crates/collab/src/db.rs
index 54d4497833f..295234af618 100644
--- a/crates/collab/src/db.rs
+++ b/crates/collab/src/db.rs
@@ -2520,7 +2520,7 @@ where
.as_database_error()
.and_then(|error| error.code())
.as_deref()
- == Some("hey") =>
+ == Some("40001") =>
{
// Retry (don't break the loop)
}