diff options
author | Vincent Ambo <mail@tazj.in> | 2022-05-14T22·55+0200 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-05-14T23·50+0000 |
commit | e3d09c3446b6a5ba7e7fafa66712b3420714e226 (patch) | |
tree | 88ed88d9edd1df0e2f50eb2dc3fc8237a3f3d58a /.hgignore | |
parent | 89f25b431d9447f7c2cf9781aba10418578ec68a (diff) |
refactor(tazjin/tgsa): factor out cache access helper r/4075
factor out a function to access telegram posts from the cache, fetching them anew if required. a small behavioural change means that the program now takes a write lock when fetching a post, to avoid simultaneously fetching the same post many times (quite likely once it serves image redirects). Change-Id: If9c1429f86fb118dab90834f349cb222709c3a31 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5608 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to '.hgignore')
0 files changed, 0 insertions, 0 deletions