make db config in lotus-miner actually optional
This commit is contained in:
1 parent
d82da79e8a
commit
687ad3ae53
3 files changed
+9
-5
No files matched your search
@@ -787,7 +787,9 @@ func (n *Ensemble) Start() *Ensemble {
|
||||
n.t.Cleanup(func() { _ = stop(context.Background()) })
|
||||
mCopy := m
|
||||
n.t.Cleanup(func() {
|
||||
mCopy.BaseAPI.(*impl.StorageMinerAPI).HarmonyDB.ITestDeleteAll()
|
||||
if mCopy.BaseAPI.(*impl.StorageMinerAPI).HarmonyDB != nil {
|
||||
mCopy.BaseAPI.(*impl.StorageMinerAPI).HarmonyDB.ITestDeleteAll()
|
||||
}
|
||||
})
|
||||
|
||||
m.BaseAPI = m.StorageMiner
|
||||
|
||||
Reference in new issue
Block a user