Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions cmd/flowlogs-pipeline/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ package main
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
"strings"
"time"

jsoniter "github.com/json-iterator/go"
"github.com/netobserv/flowlogs-pipeline/pkg/config"
"github.com/netobserv/flowlogs-pipeline/pkg/health"
Expand All @@ -29,10 +34,6 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"os"
"path/filepath"
"strings"
"time"
)

var (
Expand Down Expand Up @@ -172,12 +173,12 @@ func run() {
os.Exit(1)
}

// Starts the flows pipeline
mainPipeline.Run()

// Start health report server
health.NewHealthServer(mainPipeline)

// Starts the flows pipeline
mainPipeline.Run()

// Give all threads a chance to exit and then exit the process
time.Sleep(time.Second)
log.Debugf("exiting main run")
Expand Down