Commit Graph

2 Commits

Author SHA1 Message Date
William Casarin
739e9f87f2 nip10: fetch unknown replied-to notes
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-24 13:20:33 -07:00
William Casarin
2f54a05705 timecache: add timecache help for timed caches
Some things we definitely don't want to generate every frame, such as
relative-time formatted strings, as that would create a heap allocation
each frame.

Introduce TimeCached<T> which is responsible for updating some state
after some expiry.

Signed-off-by: William Casarin <jb55@jb55.com>
2024-02-15 13:07:01 -08:00