Skip to content
Snippets Groups Projects
Unverified Commit fce28392 authored by fagongzi's avatar fagongzi Committed by GitHub
Browse files

Remove recover from stopper (#4195)

parent 8443d0b5
No related branches found
No related tags found
No related merge requests found
......@@ -245,9 +245,6 @@ func (s *Stopper) shutdownTask(id uint64) {
func (s *Stopper) doRunCancelableTask(ctx context.Context, taskID uint64, name string, task func(context.Context)) {
s.setupTask(taskID, name)
go func() {
if err := recover(); err != nil {
panic(err)
}
defer func() {
s.shutdownTask(taskID)
}()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment