delete routine cosmetic tweak.

This commit is contained in:
fiatjaf
2024-06-12 15:46:01 -03:00
parent b19f066a9d
commit db39ef65b1

View File

@@ -35,7 +35,6 @@ func deleteOldCachedEvents(ctx context.Context) {
case <-ctx.Done(): case <-ctx.Done():
return return
case <-time.After(time.Hour): case <-time.After(time.Hour):
}
log.Debug().Msg("deleting old cached events") log.Debug().Msg("deleting old cached events")
now := time.Now().Unix() now := time.Now().Unix()
for _, key := range cache.GetPaginatedKeys("ttl:", 1, 500) { for _, key := range cache.GetPaginatedKeys("ttl:", 1, 500) {
@@ -65,6 +64,7 @@ func deleteOldCachedEvents(ctx context.Context) {
} }
} }
} }
}
} }
func loadNpubsArchive(ctx context.Context) { func loadNpubsArchive(ctx context.Context) {