forked from bluesky-social/atproto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling of
resumeSession
failures (bluesky-social#2010)
* Better handling of resumeSession errors * Update test * Format * Pare back to only necessary * Update handling for 500s * Should really be update * Update logic from feedback * Update tests * Feedback * Revert debug change * Changeset * Bump minor
- Loading branch information
1 parent
5560b7a
commit 1406773
Showing
4 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@atproto/api': minor | ||
--- | ||
|
||
Improve `resumeSession` event emission. It will no longer double emit when some | ||
requests fail, and the `create-failed` event has been replaced by `expired` | ||
where appropriate, and with a new event `network-error` where appropriate or an | ||
unknown error occurs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters