what the fuck is this shit syntax
Some checks failed
Build and publish the docker image / build (push) Failing after 16s
Some checks failed
Build and publish the docker image / build (push) Failing after 16s
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
parent
f3c2ac1417
commit
410349f615
@ -187,13 +187,16 @@ proc setRateLimit*(account: GuestAccount; api: Api; remaining, reset: int) =
|
|||||||
|
|
||||||
proc initAccountPool*(cfg: Config) =
|
proc initAccountPool*(cfg: Config) =
|
||||||
let path = cfg.accountsFile
|
let path = cfg.accountsFile
|
||||||
|
let is_jsonl = path.endswith(".jsonl")
|
||||||
|
let path_exists = fileExists(path)
|
||||||
|
|
||||||
enableLogging = cfg.enableDebug
|
enableLogging = cfg.enableDebug
|
||||||
|
|
||||||
if !path.endswith(".jsonl"):
|
if !is_jsonl:
|
||||||
log "Accounts file should be formated with JSONL"
|
log "Accounts file should be formated with JSONL"
|
||||||
quit 1
|
quit 1
|
||||||
|
|
||||||
if !fileExists(path):
|
if !path_exists:
|
||||||
log "Failed to access the accounts file (", path, ")"
|
log "Failed to access the accounts file (", path, ")"
|
||||||
quit 1
|
quit 1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user