storage miner doesn't need a splitstore
This commit is contained in:
parent
c762536dcb
commit
6014273e69
@ -594,12 +594,6 @@ func Repo(r repo.Repo) Option {
|
|||||||
return xerrors.Errorf("invalid config from repo, got: %T", c)
|
return xerrors.Errorf("invalid config from repo, got: %T", c)
|
||||||
}
|
}
|
||||||
cfg = &cfgp.Blockstore
|
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:
|
default:
|
||||||
cfg = &config.Blockstore{}
|
cfg = &config.Blockstore{}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user