mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-07-25 08:19:15 +00:00
Parallelizing the per-symbol fetches opened N simultaneous TLS handshakes into an empty connection pool. On the memory-constrained Lambda (256MB ~0.15 vCPU) those CPU-bound handshakes thrashed and each exceeded the per-fetch timeout, so every ticker rendered "(no price)". Sequential fetches reuse the price client's keep-alive connection (one handshake), which is why the code was sequential by design. - revert stock and coin stats loops to sequential (keep the reply-budget sub-context and 3s per-fetch timeout) - log per-symbol fetch failures instead of silently swallowing them