Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Commit

Permalink
update main function
Browse files Browse the repository at this point in the history
  • Loading branch information
loomis-relativity committed Oct 5, 2021
1 parent 8b690c5 commit ec015a9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions internal/scaffold/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,9 @@ func main() {
}
func runInteractive(params service.CollectorSettings) error {
app, err := service.New(params)
if err != nil {
return fmt.Errorf("failed to construct the collector server: %w", err)
}
cmd := service.NewCommand(app)
cmd := service.NewCommand(params)
if err = cmd.Execute(); err != nil {
log.Fatalf("application run finished with error: %v", err)
log.Fatalf("collector server run finished with error: %v", err)
}
return nil
Expand Down

0 comments on commit ec015a9

Please sign in to comment.