From 8f3b5cafd19c0021167fc3d2e60828c0cf81616e Mon Sep 17 00:00:00 2001 From: drpepper66 Date: Fri, 17 Nov 2023 23:17:12 +0100 Subject: [PATCH] fix indent --- src/auth.nim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/auth.nim b/src/auth.nim index 4de950b..6f58eec 100644 --- a/src/auth.nim +++ b/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