Skip to content

Commit

Permalink
feat: optimize for single case (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Dec 9, 2023
1 parent 6530e23 commit d371c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aiohappyeyeballs/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def create_connection(

sock: Optional[socket.socket] = None
exceptions: List[List[Exception]] = []
if happy_eyeballs_delay is None:
if happy_eyeballs_delay is None or len(addr_infos) == 1:
# not using happy eyeballs
for addrinfo in addr_infos:
try:
Expand Down

0 comments on commit d371c46

Please sign in to comment.