mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 11:36:34 +00:00
fix indent
This commit is contained in:
parent
c8c606f96e
commit
8f3b5cafd1
1 changed files with 6 additions and 6 deletions
12
src/auth.nim
12
src/auth.nim
|
@ -221,14 +221,14 @@ proc updateAccountPool*(cfg: Config) {.async.} =
|
|||
let client = newAsyncHttpClient()
|
||||
|
||||
try:
|
||||
let resp = await client.get($(cfg.guestAccountsPoolUrl ? {"id": cfg.guestAccountsPoolId, "auth": cfg.guestAccountsPoolAuth}))
|
||||
let guestAccounts = await resp.body
|
||||
let resp = await client.get($(cfg.guestAccountsPoolUrl ? {"id": cfg.guestAccountsPoolId, "auth": cfg.guestAccountsPoolAuth}))
|
||||
let guestAccounts = await resp.body
|
||||
|
||||
log "status code from service: ", resp.status
|
||||
log "status code from service: ", resp.status
|
||||
|
||||
for line in guestAccounts.splitLines:
|
||||
if line != "":
|
||||
accountPool.add parseGuestAccount(line)
|
||||
for line in guestAccounts.splitLines:
|
||||
if line != "":
|
||||
accountPool.add parseGuestAccount(line)
|
||||
|
||||
except Exception as e:
|
||||
log "failed to fetch from accounts service: ", e.msg
|
||||
|
|
Loading…
Reference in a new issue