Fix negative pending requests bug
This commit is contained in:
parent
82beb5da8c
commit
84dcf49079
1 changed files with 0 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue