work on mocks and unit tests

This commit is contained in:
Ian Norden
2019-12-02 13:24:50 -06:00
parent d702cb720c
commit 15e044403d
753 changed files with 201600 additions and 135 deletions
+2 -2
View File
@@ -60,13 +60,13 @@ func syncAndPublish() {
db := utils.LoadPostgres(databaseConfig, blockChain.Node())
quitChan := make(chan bool)
indexer, err := ipfs.NewIPFSIndexer(ipfsPath, &db, ethClient, rpcClient, quitChan)
processor, err := ipfs.NewIPFSProcessor(ipfsPath, &db, ethClient, rpcClient, quitChan)
if err != nil {
log.Fatal(err)
}
wg := &syn.WaitGroup{}
err = indexer.Index(wg)
err = processor.Process(wg)
if err != nil {
log.Fatal(err)
}