Skip to content

Commit

Permalink
[R4R]-{develop}: fix caught unhandled error for da upgrade tool (#1288)
Browse files Browse the repository at this point in the history
caught unhandled error for da upgrade tool
  • Loading branch information
guoshijiang authored Jul 18, 2023
1 parent 2cbc722 commit 50b2382
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions packages/data-transport-layer/src/services/da-ingestion/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,18 @@ export class DaIngestionService extends BaseService<DaIngestionServiceOptions> {
}

protected async _start(): Promise<void> {
this.updateTransactionBatches(
this.options.startUpdateBatchIndex,
this.options.endUpdateBatchIndex
)
try {
await this.updateTransactionBatches(
this.options.startUpdateBatchIndex,
this.options.endUpdateBatchIndex
)
} catch (err) {
this.logger.error('Caught an unhandled error for update da tool', {
message: err.toString(),
stack: err.stack,
code: err.code,
})
}
while (this.running) {
try {
const batchIndexRange = await this.getBatchIndexRange()
Expand Down

0 comments on commit 50b2382

Please sign in to comment.