Skip to content

Commit

Permalink
Add a comment explaining why we do this in create
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Oct 2, 2024
1 parent 0cab5e6 commit 6a3f447
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sygnal/gcmpushkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ async def create(
# `ClientSession` can't directly take the proxy URL, so we need to
# set the usual env var and use `trust_env=True`
os.environ["HTTPS_PROXY"] = proxy_url

# ClientSession must be instantiated by an async function, hence we do this
# here instead of `__init__`.
session = aiohttp.ClientSession(trust_env=True, auto_decompress=False)

cls.google_auth_request = google.auth.transport._aiohttp_requests.Request(
Expand Down

0 comments on commit 6a3f447

Please sign in to comment.