Commit f10c7fe
committed
Read the per-request client from inside the worker handler
The Cloudflare SDK calls `init()` inside `withIsolationScope`, so the client is bound
to the scope forked for that request. Reading it from outside the handler only worked
while the current scope was shared by reference.1 parent 38d209a commit f10c7fe
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
| |||
225 | 228 | | |
226 | 229 | | |
227 | 230 | | |
228 | | - | |
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
| |||
0 commit comments