Просмотр исходного кода

remove the panic handler

Signed-off-by: r2k1 <yokree@gmail.com>
r2k1 3 лет назад
Родитель
Сommit
949edff992
1 измененных файлов с 0 добавлено и 7 удалено
  1. 0 7
      pkg/cmd/costmodel/costmodel.go

+ 0 - 7
pkg/cmd/costmodel/costmodel.go

@@ -61,13 +61,6 @@ func StartExportWorker(ctx context.Context, model costmodel.AllocationModel) {
 		return
 	}
 	go func() {
-		// panic in a goroutine will crash the application. Log it and carry on.
-		defer func() {
-			if r := recover(); r != nil {
-				log.Errorf("panic in CSV Export Worker, stopping: %v", r)
-			}
-		}()
-
 		log.Info("Starting CSV exporter worker...")
 
 		// perform first update immediately