Skip to content

Commit

Permalink
Fix negative pending requests bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Aug 31, 2023
1 parent 82beb5d commit 84dcf49
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/tokens.nim
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ proc release*(account: GuestAccount) =
proc getGuestAccount*(api: Api): Future[GuestAccount] {.async.} =
for i in 0 ..< accountPool.len:
if result.isReady(api): break
release(result)
result = accountPool.sample()

if not result.isNil and result.isReady(api):
Expand Down

0 comments on commit 84dcf49

Please sign in to comment.