Fix block indexing
This commit is contained in:
parent
8a7a92faa5
commit
cf8cb7263d
|
@ -234,9 +234,10 @@ func StartBlockIndexer(ctx context.Context, conn *db.DB, clients map[string]*eth
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
rows.Close()
|
rows.Close()
|
||||||
|
wg.Wait()
|
||||||
|
|
||||||
if batch.Len() > 0 {
|
if batch.Len() > 0 {
|
||||||
wg.Wait()
|
logger.Printf("found %d blocks without timestamps\n", batch.Len())
|
||||||
err = conn.SendBatch(context.Background(), &batch).Close()
|
err = conn.SendBatch(context.Background(), &batch).Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Println(err)
|
logger.Println(err)
|
||||||
|
|
Loading…
Reference in New Issue