Commit fa408af
authored
fix(cash): use relaxed timeout on exchange rate retry in GiveBillTransactor (#899)
The retry path in start() resolved a fresh VerifiedState but still
applied the strict billExchangeDataTimeout (30s) to it. When the
server's rate timestamp was already >30s old (common after backgrounding),
the freshly-fetched rate also failed the check.
Now the retry passes null for billExchangeDataTimeout, falling back to
the default 15-minute window. The initial check still uses the strict
timeout — the relaxation only applies after we've just fetched fresh
data via resolveVerifiedState.
Closes: Bugsnag 6a1bd94017b0f7c09452ffd7
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>1 parent a04ac22 commit fa408af
2 files changed
Lines changed: 45 additions & 2 deletions
File tree
- services/opencode/src
- main/kotlin/com/getcode/opencode/internal/transactors
- test/kotlin/com/getcode/opencode/internal/transactors
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
Lines changed: 44 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
137 | 179 | | |
138 | 180 | | |
139 | 181 | | |
| |||
268 | 310 | | |
269 | 311 | | |
270 | 312 | | |
| 313 | + | |
271 | 314 | | |
272 | 315 | | |
273 | 316 | | |
| |||
288 | 331 | | |
289 | 332 | | |
290 | 333 | | |
291 | | - | |
| 334 | + | |
292 | 335 | | |
293 | 336 | | |
294 | 337 | | |
| |||
0 commit comments