about summary refs log tree commit diff
path: root/corp
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-01-18T12·48+0300
committertazjin <tazjin@tvl.su>2023-01-18T15·44+0000
commit3f0b1d8e0b518c6f4684f65ae421f71864176d99 (patch)
treeeba346ff4a78e5de90c809d1efb635bd7eb40ea8 /corp
parent6986aa5824ba6ae23b1363fede13c2df5ea0e770 (diff)
fix(corp/data-import): commit the final transaction, too r/5689
Otherwise up to 1000 elements might be missing.

Change-Id: I20d6238424eec27f0e758e7737c9c31bcb81b23d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7862
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'corp')
-rw-r--r--corp/russian/data-import/src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/corp/russian/data-import/src/main.rs b/corp/russian/data-import/src/main.rs
index 502351cf9d..70eb0a56dd 100644
--- a/corp/russian/data-import/src/main.rs
+++ b/corp/russian/data-import/src/main.rs
@@ -107,6 +107,8 @@ fn main() {
 
         count += 1;
     }
+
+    tx.commit().ensure("final commit failed");
 }
 
 /// It's like `expect`, but through `log::error`.