fix: reuse persistent aiohttp.ClientSession in GiphyService (#26) #66

Merged
cal merged 1 commits from ai/major-domo-v2-26 into next-release 2026-03-07 03:31:03 +00:00

1 Commits

Author SHA1 Message Date
Cal Corum
e9dd318e5a perf: reuse persistent aiohttp.ClientSession in GiphyService (#26)
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m5s
Both get_disappointment_gif and get_gif previously created a new
ClientSession per call. Replace with a lazily-initialised shared
session stored on the instance, eliminating per-call TCP handshake
and DNS overhead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05 01:32:52 -06:00