fixes after rebase

This commit is contained in:
Ian Norden
2019-12-02 13:24:58 -06:00
parent d2db5d0ac9
commit 8b31d12716
14 changed files with 29 additions and 8 deletions
+5 -1
View File
@@ -69,7 +69,11 @@ func syncAndPublish() {
}
ipfsPath = filepath.Join(home, ".ipfs")
}
processor, err := seed_node.NewSeedNode(ipfsPath, &db, rpcClient, quitChan, 1)
workers := viper.GetInt("client.workers")
if workers < 1 {
workers = 1
}
processor, err := seed_node.NewSeedNode(ipfsPath, &db, rpcClient, quitChan, workers)
if err != nil {
log.Fatal(err)
}
+5 -1
View File
@@ -63,7 +63,11 @@ func syncPublishScreenAndServe() {
}
ipfsPath = filepath.Join(home, ".ipfs")
}
processor, err := seed_node.NewSeedNode(ipfsPath, &db, rpcClient, quitChan, 1)
workers := viper.GetInt("client.workers")
if workers < 1 {
workers = 1
}
processor, err := seed_node.NewSeedNode(ipfsPath, &db, rpcClient, quitChan, workers)
if err != nil {
log.Fatal(err)
}