Skip to content

Commit

Permalink
Cache the hash generation of the ConnectionKey (#8895)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Aug 26, 2024
1 parent a74e818 commit 68629b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohttp/client_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def _merge_ssl_params(
return ssl


@attr.s(auto_attribs=True, slots=True, frozen=True)
@attr.s(auto_attribs=True, slots=True, frozen=True, cache_hash=True)
class ConnectionKey:
# the key should contain an information about used proxy / TLS
# to prevent reusing wrong connections from a pool
Expand Down

0 comments on commit 68629b5

Please sign in to comment.