actual shit syntax
All checks were successful
Build and publish the docker image / build (push) Successful in 9m24s
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:
parent
410349f615
commit
2d61656ddb
@ -187,16 +187,13 @@ 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 !is_jsonl:
|
if not path.endswith(".jsonl"):
|
||||||
log "Accounts file should be formated with JSONL"
|
log "Accounts file should be formated with JSONL"
|
||||||
quit 1
|
quit 1
|
||||||
|
|
||||||
if !path_exists:
|
if not fileExists(path):
|
||||||
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