We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c1e803 commit 721ce2aCopy full SHA for 721ce2a
src/models/krate.rs
@@ -105,7 +105,7 @@ impl<'a> NewCrate<'a> {
105
conn.transaction(|conn| {
106
// To avoid race conditions, we try to insert
107
// first so we know whether to add an owner
108
- if let Some(krate) = conn.transaction(|conn| self.create(conn, uploader).optional())? {
+ if let Some(krate) = self.create(conn, uploader).optional()? {
109
return Ok(krate);
110
}
111
0 commit comments