Fix camel case
This commit is contained in:
parent
5c80a84982
commit
6b64c253f1
|
@ -5,7 +5,7 @@ import ../helpers
|
|||
|
||||
export merkletree, helpers
|
||||
|
||||
converter toBool*(x: CtBool): bool =
|
||||
converter toBool*(x: CTBool): bool =
|
||||
bool(x)
|
||||
|
||||
proc `==`*(a, b: Poseidon2Tree): bool =
|
||||
|
|
|
@ -71,8 +71,8 @@ template setupAndTearDown*() {.dirty.} =
|
|||
network: BlockExcNetwork
|
||||
clock: Clock
|
||||
localStore: RepoStore
|
||||
localStoreRepoDs: DataStore
|
||||
localStoreMetaDs: DataStore
|
||||
localStoreRepoDs: Datastore
|
||||
localStoreMetaDs: Datastore
|
||||
engine: BlockExcEngine
|
||||
store: NetworkStore
|
||||
node: CodexNodeRef
|
||||
|
|
|
@ -14,9 +14,9 @@ var number = 0
|
|||
proc newDb*(self: TempLevelDb): Datastore =
|
||||
if self.currentPath.len > 0:
|
||||
raiseAssert("TempLevelDb already active.")
|
||||
self.currentPath = getTempDir() / "templeveldb" / $number / $getmonotime()
|
||||
self.currentPath = getTempDir() / "templeveldb" / $number / $getMonoTime()
|
||||
inc number
|
||||
createdir(self.currentPath)
|
||||
createDir(self.currentPath)
|
||||
self.ds = LevelDbDatastore.new(self.currentPath).tryGet()
|
||||
return self.ds
|
||||
|
||||
|
@ -26,5 +26,5 @@ proc destroyDb*(self: TempLevelDb): Future[void] {.async.} =
|
|||
try:
|
||||
(await self.ds.close()).tryGet()
|
||||
finally:
|
||||
removedir(self.currentPath)
|
||||
removeDir(self.currentPath)
|
||||
self.currentPath = ""
|
||||
|
|
Loading…
Reference in New Issue