Skip to content

Commit e531cf4

Browse files
committed
fix(): process ants panic err
1 parent fae81ba commit e531cf4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

syncer.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ func mustGetBlocks(start, end int64, arClient *goar.Client, blockIdxs *BlockIdxs
249249
lock.Unlock()
250250

251251
wg.Done()
252-
})
252+
}, ants.WithPanicHandler(func(err interface{}) {
253+
panic(err)
254+
}))
253255

254256
defer p.Release()
255257

0 commit comments

Comments
 (0)