mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-19 07:14:24 +01:00
delete routine cosmetic tweak.
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user