File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,13 @@ def _assign_requests_to_connections(self) -> List[AsyncConnectionInterface]:
251
251
closing_connections .append (connection )
252
252
elif (
253
253
connection .is_idle ()
254
- and len ([connection for connection in self ._connections if connection .is_idle ()])
254
+ and len (
255
+ [
256
+ connection
257
+ for connection in self ._connections
258
+ if connection .is_idle ()
259
+ ]
260
+ )
255
261
> self ._max_keepalive_connections
256
262
):
257
263
# log: "closing idle connection"
Original file line number Diff line number Diff line change @@ -251,7 +251,13 @@ def _assign_requests_to_connections(self) -> List[ConnectionInterface]:
251
251
closing_connections .append (connection )
252
252
elif (
253
253
connection .is_idle ()
254
- and len ([connection for connection in self ._connections if connection .is_idle ()])
254
+ and len (
255
+ [
256
+ connection
257
+ for connection in self ._connections
258
+ if connection .is_idle ()
259
+ ]
260
+ )
255
261
> self ._max_keepalive_connections
256
262
):
257
263
# log: "closing idle connection"
You can’t perform that action at this time.
0 commit comments