mirror of
https://github.com/zedeus/nitter.git
synced 2025-01-07 07:35:24 +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()
|
let client = newAsyncHttpClient()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
let resp = await client.get($(cfg.guestAccountsPoolUrl ? {"id": cfg.guestAccountsPoolId, "auth": cfg.guestAccountsPoolAuth}))
|
let resp = await client.get($(cfg.guestAccountsPoolUrl ? {"id": cfg.guestAccountsPoolId, "auth": cfg.guestAccountsPoolAuth}))
|
||||||
let guestAccounts = await resp.body
|
let guestAccounts = await resp.body
|
||||||
|
|
||||||
log "status code from service: ", resp.status
|
log "status code from service: ", resp.status
|
||||||
|
|
||||||
for line in guestAccounts.splitLines:
|
for line in guestAccounts.splitLines:
|
||||||
if line != "":
|
if line != "":
|
||||||
accountPool.add parseGuestAccount(line)
|
accountPool.add parseGuestAccount(line)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log "failed to fetch from accounts service: ", e.msg
|
log "failed to fetch from accounts service: ", e.msg
|
||||||
|
|
Loading…
Reference in a new issue