storage miner doesn't need a splitstore

This commit is contained in:
vyzo
2021-03-05 14:46:18 +02:00
parent c762536dcb
commit 6014273e69
-6
View File
@@ -594,12 +594,6 @@ func Repo(r repo.Repo) Option {
return xerrors.Errorf("invalid config from repo, got: %T", c)
}
cfg = &cfgp.Blockstore
case repo.StorageMiner:
cfgp, ok := c.(*config.StorageMiner)
if !ok {
return xerrors.Errorf("invalid config from repo, got: %T", c)
}
cfg = &cfgp.Blockstore
default:
cfg = &config.Blockstore{}
}