tvl-depot/users/tazjin/tgsa
Vincent Ambo e3d09c3446 refactor(tazjin/tgsa): factor out cache access helper
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>
2022-05-14 23:50:50 +00:00
..
src refactor(tazjin/tgsa): factor out cache access helper 2022-05-14 23:50:50 +00:00
.gitignore feat(tazjin/tgsa): Implement initial tg embed -> BBcode features 2022-04-16 20:35:01 +00:00
Cargo.lock fix(tazjin/tgsa): Preserve newlines in messages 2022-04-20 11:02:44 +00:00
Cargo.toml fix(tazjin/tgsa): Preserve newlines in messages 2022-04-20 11:02:44 +00:00
default.nix feat(tazjin/tgsa): Implement initial tg embed -> BBcode features 2022-04-16 20:35:01 +00:00