Skip to content

Commit

Permalink
Appview: retry dataplane requests on abort (#2783)
Browse files Browse the repository at this point in the history
appview: retry dataplane requests on abort
  • Loading branch information
devinivy authored Sep 4, 2024
1 parent 71305e8 commit 2397067
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/bsky/src/data-plane/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ export const createDataPlaneClient = (
try {
return await client.lib[method.localName](...args)
} catch (err) {
if (err instanceof ConnectError && err.code === Code.Unavailable) {
if (
err instanceof ConnectError &&
(err.code === Code.Unavailable || err.code === Code.Aborted)
) {
tries++
error = err
remainingClients = getRemainingClients(remainingClients, client)
Expand Down

0 comments on commit 2397067

Please sign in to comment.