Skip to content
Open
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
2 changes: 1 addition & 1 deletion cmd/livepeer/starter/starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
MetadataQueueUri *string
MetadataAmqpExchange *string
MetadataPublishTimeout *time.Duration
Datadir *string
DataDir *string
AIModelsDir *string
Objectstore *string
Recordstore *string
Expand Down Expand Up @@ -403,7 +403,7 @@
LocalVerify: &defaultLocalVerify,

// Storage:
Datadir: &defaultDatadir,

Check failure on line 406 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-arm64

unknown field Datadir in struct literal of type LivepeerConfig, but does have DataDir

Check failure on line 406 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-amd64

unknown field Datadir in struct literal of type LivepeerConfig, but does have DataDir

Check failure on line 406 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-arm64

unknown field Datadir in struct literal of type LivepeerConfig, but does have DataDir

Check failure on line 406 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-arm64

unknown field Datadir in struct literal of type LivepeerConfig, but does have DataDir

Check failure on line 406 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-amd64

unknown field Datadir in struct literal of type LivepeerConfig, but does have DataDir

Check failure on line 406 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for windows-cpu-amd64

unknown field Datadir in struct literal of type LivepeerConfig, but does have DataDir

Check failure on line 406 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-amd64

unknown field Datadir in struct literal of type LivepeerConfig, but does have DataDir

Check failure on line 406 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Run tests defined for the project

unknown field Datadir in struct literal of type LivepeerConfig, but does have DataDir
Objectstore: &defaultObjectstore,
Recordstore: &defaultRecordstore,

Expand Down Expand Up @@ -558,7 +558,7 @@
glog.Infof("***Livepeer is running on the %v network***", *cfg.Network)
}

if *cfg.Datadir == "" {

Check failure on line 561 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 561 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 561 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 561 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 561 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 561 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for windows-cpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 561 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 561 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Run tests defined for the project

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)
homedir := os.Getenv("HOME")
if homedir == "" {
usr, err := user.Current()
Expand All @@ -567,13 +567,13 @@
}
homedir = usr.HomeDir
}
*cfg.Datadir = filepath.Join(homedir, ".lpData", *cfg.Network)

Check failure on line 570 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 570 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 570 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 570 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 570 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 570 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for windows-cpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 570 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 570 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Run tests defined for the project

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)
}

//Make sure datadir is present
if _, err := os.Stat(*cfg.Datadir); os.IsNotExist(err) {

Check failure on line 574 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 574 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 574 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 574 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 574 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 574 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for windows-cpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 574 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 574 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Run tests defined for the project

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)
glog.Infof("Creating data dir: %v", *cfg.Datadir)

Check failure on line 575 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 575 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 575 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 575 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 575 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 575 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for windows-cpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 575 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 575 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Run tests defined for the project

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)
if err = os.MkdirAll(*cfg.Datadir, 0755); err != nil {

Check failure on line 576 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 576 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 576 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 576 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 576 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 576 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for windows-cpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 576 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 576 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Run tests defined for the project

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)
glog.Errorf("Error creating datadir: %v", err)
}
}
Expand All @@ -584,14 +584,14 @@
}

//Set up DB
dbh, err := common.InitDB(*cfg.Datadir + "/lpdb.sqlite3")

Check failure on line 587 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 587 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 587 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 587 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 587 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 587 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for windows-cpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 587 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 587 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Run tests defined for the project

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)
if err != nil {
glog.Errorf("Error opening DB: %v", err)
return
}
defer dbh.Close()

n, err := core.NewLivepeerNode(nil, *cfg.Datadir, dbh)

Check failure on line 594 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 594 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for darwin-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 594 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 594 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-arm64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 594 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-cpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 594 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for windows-cpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 594 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Build binaries for linux-gpu-amd64

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)

Check failure on line 594 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Run tests defined for the project

cfg.Datadir undefined (type LivepeerConfig has no field or method Datadir, but does have field DataDir)
if err != nil {
glog.Errorf("Error creating livepeer node: %v", err)
}
Expand Down
Loading