From f0a7593dfa48a254f5a3664cd7ca80178d36f436 Mon Sep 17 00:00:00 2001 From: Guillermo Serrahima Date: Thu, 16 Jul 2026 01:56:37 +0200 Subject: Split note and author TTLs; added TTL refresh on cache access --- fetchers/jetstream.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fetchers/jetstream.go') diff --git a/fetchers/jetstream.go b/fetchers/jetstream.go index 78a2550..866533a 100644 --- a/fetchers/jetstream.go +++ b/fetchers/jetstream.go @@ -103,7 +103,7 @@ func handleJetstreamPost(conf *Config, did, uri string, commit *jetstreamCommit) } // only track posts from authors we already care about - author, found := conf.Cache.GetAuthor(did) + author, found := conf.Cache.readAuthor(did) if !found { return } @@ -118,13 +118,13 @@ func handleJetstreamPost(conf *Config, did, uri string, commit *jetstreamCommit) func handleJetstreamProfile(conf *Config, did string, commit *jetstreamCommit) { if commit.Operation == "delete" { - if _, found := conf.Cache.GetAuthor(did); found { + if _, found := conf.Cache.readAuthor(did); found { conf.Cache.DeleteAuthor(did) } return } - existing, found := conf.Cache.GetAuthor(did) + existing, found := conf.Cache.readAuthor(did) if !found { return } -- cgit v1.2.3