Commit 5a13d99
committed
fix: Handle serialization errors properly in batch UPDATE
- Replace .unwrap() with proper error handling for serde_json::to_vec()
- Fail early if any row serialization fails before applying batch
- Maintain atomicity guarantee by preventing partial updates on serialization errors
- Add descriptive error message for serialization failures
Addresses CodeRabbit feedback on potential panic in batch operation.1 parent cbd62fc commit 5a13d99
1 file changed
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
250 | 254 | | |
251 | 255 | | |
252 | 256 | | |
| |||
0 commit comments