Skip to content

Commit

Permalink
Merge pull request #2646 from livepeer/yf/flag-updates
Browse files Browse the repository at this point in the history
cmd/livepeer: Add httpIngest, localVerify to default cfg
  • Loading branch information
emranemran authored Nov 9, 2022
2 parents 372b0d3 + 0d8f659 commit 3b60df2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#### General

- \#2635 Fix entrypoint path in built docker images (@hjpotter92)
- \#2646 Include HttpIngest and LocalVerify in param table on startup (@yondonfu)

#### Broadcaster

Expand Down
7 changes: 4 additions & 3 deletions cmd/livepeer/livepeer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ import (
"context"
"flag"
"fmt"
"github.com/olekukonko/tablewriter"
"os"
"os/signal"
"reflect"
"runtime"
"time"

"github.com/olekukonko/tablewriter"

"github.com/livepeer/go-livepeer/cmd/livepeer/starter"
"github.com/livepeer/livepeer-data/pkg/mistconnector"
"github.com/peterbourgon/ff/v3"
Expand Down Expand Up @@ -119,8 +120,8 @@ func parseLivepeerConfig() starter.LivepeerConfig {
cfg.OrchAddr = flag.String("orchAddr", *cfg.OrchAddr, "Comma-separated list of orchestrators to connect to")
cfg.VerifierURL = flag.String("verifierUrl", *cfg.VerifierURL, "URL of the verifier to use")
cfg.VerifierPath = flag.String("verifierPath", *cfg.VerifierPath, "Path to verifier shared volume")
cfg.LocalVerify = flag.Bool("localVerify", true, "Set to true to enable local verification i.e. pixel count and signature verification.")
cfg.HttpIngest = flag.Bool("httpIngest", true, "Set to true to enable HTTP ingest")
cfg.LocalVerify = flag.Bool("localVerify", *cfg.LocalVerify, "Set to true to enable local verification i.e. pixel count and signature verification.")
cfg.HttpIngest = flag.Bool("httpIngest", *cfg.HttpIngest, "Set to true to enable HTTP ingest")

// Transcoding:
cfg.Orchestrator = flag.Bool("orchestrator", *cfg.Orchestrator, "Set to true to be an orchestrator")
Expand Down
12 changes: 12 additions & 0 deletions cmd/livepeer/starter/starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ func DefaultLivepeerConfig() LivepeerConfig {
defaultMetadataAmqpExchange := "lp_golivepeer_metadata"
defaultMetadataPublishTimeout := 1 * time.Second

// Ingest:
defaultHttpIngest := true

// Verification:
defaultLocalVerify := true

// Storage:
defaultDatadir := ""
defaultObjectstore := ""
Expand Down Expand Up @@ -256,6 +262,12 @@ func DefaultLivepeerConfig() LivepeerConfig {
MetadataAmqpExchange: &defaultMetadataAmqpExchange,
MetadataPublishTimeout: &defaultMetadataPublishTimeout,

// Ingest:
HttpIngest: &defaultHttpIngest,

// Verification:
LocalVerify: &defaultLocalVerify,

// Storage:
Datadir: &defaultDatadir,
Objectstore: &defaultObjectstore,
Expand Down

0 comments on commit 3b60df2

Please sign in to comment.