Ver Fonte

remove the panic handler

Signed-off-by: r2k1 <yokree@gmail.com>
r2k1 há 3 anos atrás
pai
commit
949edff992
1 ficheiros alterados com 0 adições e 7 exclusões
  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