actual shit syntax
All checks were successful
Build and publish the docker image / build (push) Successful in 9m24s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn 2025-01-21 05:48:52 +03:00
parent 410349f615
commit 2d61656ddb
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D

View File

@ -187,16 +187,13 @@ proc setRateLimit*(account: GuestAccount; api: Api; remaining, reset: int) =
proc initAccountPool*(cfg: Config) =
let path = cfg.accountsFile
let is_jsonl = path.endswith(".jsonl")
let path_exists = fileExists(path)
enableLogging = cfg.enableDebug
if !is_jsonl:
if not path.endswith(".jsonl"):
log "Accounts file should be formated with JSONL"
quit 1
if !path_exists:
if not fileExists(path):
log "Failed to access the accounts file (", path, ")"
quit 1