소스 검색

remove the panic handler

Signed-off-by: r2k1 <yokree@gmail.com>
r2k1 3 년 전
부모
커밋
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
 		return
 	}
 	}
 	go func() {
 	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...")
 		log.Info("Starting CSV exporter worker...")
 
 
 		// perform first update immediately
 		// perform first update immediately