mirror of
https://github.com/anotherhadi/iknowyou.git
synced 2026-04-12 00:47:26 +02:00
Pin the search in demo mode
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -131,6 +131,9 @@ func (m *Manager) purgeExpired() {
|
||||
m.mu.Lock()
|
||||
defer m.mu.Unlock()
|
||||
for id, s := range m.searches {
|
||||
if s.pinned {
|
||||
continue // demo/pinned searches are never purged
|
||||
}
|
||||
ft := s.FinishedAt()
|
||||
if ft.IsZero() {
|
||||
continue // still running
|
||||
|
||||
Reference in New Issue
Block a user