Commit b63de8b
fix: move probe healthy log to req.onsuccess to avoid false positive
The "connection is healthy" log was emitted synchronously after
count(), before the IDB request completed. If the request later
failed via onerror, both healthy and stale logs would fire for
the same visibility event. Now only logs on actual success.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 74d04d6 commit b63de8b
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
170 | | - | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| |||
0 commit comments