Commit 8226749
fix: use iter() for Kafka since FutureRecord borrows data
FutureRecord borrows from the tuple values (topic, key, payload).
Using into_iter() would move these into the closure, but the async
block can't outlive these local variables. Using iter() keeps the
prepared Vec alive while futures execute.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 5c9bec4 commit 8226749
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
212 | 214 | | |
213 | | - | |
| 215 | + | |
214 | 216 | | |
215 | | - | |
| 217 | + | |
216 | 218 | | |
217 | 219 | | |
218 | 220 | | |
| |||
0 commit comments