Minor changes.
h3rald h3rald@h3rald.com
Mon, 16 Mar 2020 15:38:06 +0100
1 files changed,
2 insertions(+),
3 deletions(-)
jump to
M
src/litestorepkg/lib/core.nim
→
src/litestorepkg/lib/core.nim
@@ -7,7 +7,6 @@ oids,
json, pegs, strtabs, - tables, strutils, base64, math@@ -89,7 +88,7 @@ LOG.error(getCurrentExceptionMsg())
LOG.debug(e.getStackTrace()) LOG.error("Unable to upgrade datastore '$1'." % store.path) -proc openDatastore*(file: string): Datastore = +proc openDatastore*(file: string): Datastore {.gcsafe.} = if not file.fileExists: raise newException(EDatastoreDoesNotExist, "Datastore '$1' does not exists." % file)@@ -675,7 +674,7 @@ LS.mount = settings["mount"].getBool
if not cliSettings.hasKey("readonly") and settings.hasKey("readonly"): LS.readonly = settings["readonly"].getBool -proc setup*(LS: var LiteStore, open = true) = +proc setup*(LS: var LiteStore, open = true) {.gcsafe.} = if not LS.file.fileExists: try: LS.file.createDatastore()