Commit 27f2b65
committed
Fix timeout silently succeeding in waitForHttpReadyEffect
Effect.timeoutOption returns Option.None on timeout (on the success channel),
not a TimeoutError on the error channel. The previous code discarded the Option
result, so a timeout was treated as success. Now we explicitly match the Option:
None maps to BackendTimeoutError, Some maps to Effect.void. The now-unreachable
TimeoutError catchTag is removed.1 parent ac1b470 commit 27f2b65
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
63 | 70 | | |
64 | | - | |
65 | | - | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| |||
0 commit comments