mirror of
https://github.com/LBRYFoundation/reflector.go.git
synced 2025-09-21 02:19:46 +00:00
fix bugs
This commit is contained in:
parent
d21b0867dd
commit
4928e430c0
2 changed files with 4 additions and 1 deletions
|
@ -38,6 +38,9 @@ func uploadCmd(cmd *cobra.Command, args []string) {
|
|||
defer store.Shutdown()
|
||||
|
||||
databaseConn, err := config.LoadDatabase(conf, "upload.yaml")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
uploader := reflector.NewUploader(databaseConn, store, uploadWorkers, uploadSkipExistsCheck, uploadDeleteBlobsAfterUpload)
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ func LoadDatabase(path, file string) (*db.SQL, error) {
|
|||
return nil, errors.Err(err)
|
||||
}
|
||||
|
||||
dbConfig := v.Sub("db")
|
||||
dbConfig := v.Sub("database")
|
||||
if dbConfig == nil {
|
||||
return nil, errors.Err("db config not found")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue