Commit 794efb1
fix(margin): use write DB connection for margin poller (#893)
The margin poller inserts into margin_pool_snapshots every 30 seconds
but was using Db::for_read, which sets read-only transaction mode.
This caused "cannot execute INSERT in a read-only transaction" errors
across all server pods.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5f825df commit 794efb1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
0 commit comments