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():
return
case <-time.After(time.Hour):
}
log.Debug().Msg("deleting old cached events")
now := time.Now().Unix()
for _, key := range cache.GetPaginatedKeys("ttl:", 1, 500) {
@@ -66,6 +65,7 @@ func deleteOldCachedEvents(ctx context.Context) {
}
}
}
}
func loadNpubsArchive(ctx context.Context) {
log.Debug().Msg("refreshing the npubs archive")