Skip to content

Commit 7b0507c

Browse files
authored
Update README.md
1 parent 9f58f2f commit 7b0507c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ from twocaptcha import TwoCaptcha
243243
captcha_result = await captchaSolver(image)
244244

245245
async def captchaSolver(image):
246-
loop = asyncio.get_running_loop()
247-
with concurrent.futures.ThreadPoolExecutor() as pool:
248-
result = await loop.run_in_executor(pool, lambda: TwoCaptcha(API_KEY).normal(image))
249-
return result
246+
loop = asyncio.get_running_loop()
247+
with concurrent.future.ThreadPoolExecutor() as pool:
248+
result = await loop.run_in_executor(pool, lambda: TwoCaptcha(API_KEY).normal(image))
249+
return result
250250
```
251251

252252

0 commit comments

Comments
 (0)