File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ def _assign_requests_to_connections(self) -> List[AsyncConnectionInterface]:
262
262
queued_requests = [request for request in self ._requests if request .is_queued ()]
263
263
for pool_request in queued_requests :
264
264
origin = pool_request .request .url .origin
265
- avilable_connections = [
265
+ available_connections = [
266
266
connection
267
267
for connection in self ._connections
268
268
if connection .can_handle_request (origin ) and connection .is_available ()
@@ -277,9 +277,9 @@ def _assign_requests_to_connections(self) -> List[AsyncConnectionInterface]:
277
277
# 2. We can create a new connection to handle the request.
278
278
# 3. We can close an idle connection and then create a new connection
279
279
# to handle the request.
280
- if avilable_connections :
280
+ if available_connections :
281
281
# log: "reusing existing connection"
282
- connection = avilable_connections [0 ]
282
+ connection = available_connections [0 ]
283
283
pool_request .assign_to_connection (connection )
284
284
elif len (self ._connections ) < self ._max_connections :
285
285
# log: "creating new connection"
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ def _assign_requests_to_connections(self) -> List[ConnectionInterface]:
262
262
queued_requests = [request for request in self ._requests if request .is_queued ()]
263
263
for pool_request in queued_requests :
264
264
origin = pool_request .request .url .origin
265
- avilable_connections = [
265
+ available_connections = [
266
266
connection
267
267
for connection in self ._connections
268
268
if connection .can_handle_request (origin ) and connection .is_available ()
@@ -277,9 +277,9 @@ def _assign_requests_to_connections(self) -> List[ConnectionInterface]:
277
277
# 2. We can create a new connection to handle the request.
278
278
# 3. We can close an idle connection and then create a new connection
279
279
# to handle the request.
280
- if avilable_connections :
280
+ if available_connections :
281
281
# log: "reusing existing connection"
282
- connection = avilable_connections [0 ]
282
+ connection = available_connections [0 ]
283
283
pool_request .assign_to_connection (connection )
284
284
elif len (self ._connections ) < self ._max_connections :
285
285
# log: "creating new connection"
You can’t perform that action at this time.
0 commit comments