Commit 6d62cb9
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 2110435 commit 6d62cb9
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