Check the correct serialization failure code when retrying transaction

Antonio Scandurra created

Change summary

crates/collab/src/db.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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)
                         }