From fce28392f4358bc86cc8218e3e99c98bb6d6e9af Mon Sep 17 00:00:00 2001
From: fagongzi <zhangxu19830126@gmail.com>
Date: Mon, 25 Jul 2022 13:43:42 +0800
Subject: [PATCH] Remove recover from stopper (#4195)

---
 pkg/common/stopper/stopper.go | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/pkg/common/stopper/stopper.go b/pkg/common/stopper/stopper.go
index 5ec7799ac..f2d6bd314 100644
--- a/pkg/common/stopper/stopper.go
+++ b/pkg/common/stopper/stopper.go
@@ -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)
 		}()
-- 
GitLab