Fix integration after snapshot PR (#1901)

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This commit is contained in:
ledgerwatch 2021-05-08 11:42:34 +01:00 committed by GitHub
parent 565a4250d6
commit 4a214d38e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,9 +57,6 @@ func openDatabase2(path string, applyMigrations bool, snapshotDir string, snapsh
} }
} }
metrics.AddCallback(db.RwKV().CollectMetrics) metrics.AddCallback(db.RwKV().CollectMetrics)
if err := SetSnapshotKV(db, snapshotDir, snapshotMode); err != nil {
panic(err)
}
return db return db
} }