Skip to content

Commit

Permalink
protocol: rethrow error if not reconnecting
Browse files Browse the repository at this point in the history
  • Loading branch information
fracek committed Jan 18, 2023
1 parent 113a531 commit 9a58f52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/proud-clocks-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@apibara/protocol': patch
---

Rethrow error if not reconnecting
2 changes: 1 addition & 1 deletion packages/protocol/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class StreamClient {
const { reconnect, args } = await Promise.resolve(this.onReconnect(err, retryCount))
retryCount += 1
if (!reconnect) {
break
throw err
}

this.connect()
Expand Down

0 comments on commit 9a58f52

Please sign in to comment.