Fix camel case

This commit is contained in:
Arnaud 2024-12-26 07:19:06 +01:00
parent 5c80a84982
commit 6b64c253f1
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
3 changed files with 6 additions and 6 deletions

View File

@ -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 =

View File

@ -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

View File

@ -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 = ""