todo: remove dependency from blockstoremanage to conf.

This commit is contained in:
benbierens 2023-03-14 11:32:53 +01:00
parent 303e435ec4
commit cc97010898
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 2 additions and 6 deletions

View File

@ -9,7 +9,6 @@
import std/sequtils
import std/os
import std/tables
import pkg/chronicles
import pkg/chronos
@ -26,6 +25,7 @@ import ./node
import ./conf
import ./rng
import ./rest/api
import ./stores
import ./stores/blockstoremanager
import ./blockexchange
import ./utils/fileutils

View File

@ -7,13 +7,9 @@
## This file may not be copied, modified, or distributed except according to
## those terms.
import pkg/upraises
push: {.upraises: [].}
import std/os
import pkg/chronos
import pkg/chronicles
import pkg/datastore
import pkg/confutils
import pkg/confutils/defs
@ -62,7 +58,7 @@ proc getBlockStore(repoStore: RepoStore, config: CodexConf): BlockStore =
return CacheStore.new(backingStore = repoStore, cacheSize = config.cacheSize * MiB)
return repoStore
func new*(T: type BlockStoreManager, config: CodexConf): T =
proc new*(T: type BlockStoreManager, config: CodexConf): T =
let
repoStore = createRepoStore(config)
maintenance = createMaintenance(repoStore, config)