Skip to content

Commit 9b85182

Browse files
committed
Return when we have committed on all the connections
1 parent ed492d3 commit 9b85182

File tree

1 file changed

+4
-0
lines changed
  • crates/syn2mas/src/mas_writer

1 file changed

+4
-0
lines changed

crates/syn2mas/src/mas_writer/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ impl WriterConnectionPool {
171171
.into_database("begin writer transaction")?;
172172

173173
connections.push(connection);
174+
175+
if connections.len() == self.num_connections {
176+
break;
177+
}
174178
}
175179

176180
// Put all the connections back in the pool

0 commit comments

Comments
 (0)