refactor: clean up variable names
This commit is contained in:
@@ -2,7 +2,7 @@ import asyncio
|
||||
|
||||
from aiohttp import ClientRequest, ClientResponse, ClientHandlerType
|
||||
|
||||
class SemaphoreMiddleware(asyncio.Semaphore):
|
||||
class Semaphore(asyncio.Semaphore):
|
||||
async def __call__(self, req: ClientRequest, handler: ClientHandlerType) -> ClientResponse:
|
||||
async with self:
|
||||
return await handler(req)
|
||||
|
Reference in New Issue
Block a user