Skip to content

Commit

Permalink
fix: replace 'end' event with 'close'
Browse files Browse the repository at this point in the history
  • Loading branch information
nvtaveras committed Jun 6, 2024
1 parent 9adc6a5 commit ea7586d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reporters/block_based_reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ export class BlockBasedReporter extends BaseReporter {
})
await setupNewProviderAndSubs()
})
this.provider.on('end', async () => {
this.provider.on('close', async () => {
onError(
new Error('WebsocketProvider has ended, will restart'),
new Error('WebsocketProvider connection closed, will re-open'),
this.blockHeaderSubscriptionErrorWrapper
)
await setupNewProviderAndSubs()
Expand Down

0 comments on commit ea7586d

Please sign in to comment.