better startup flow

This commit is contained in:
ari committed 2026-11-01 14:20:13 -05:00
1 parent d7f5dba677
commit 650bcff83a
8 files changed
+345 -68

No files matched your search

+10
View File
@@ -154,6 +154,16 @@ func (s *Store) DeleteSessions(ownerID string) error {
return s.save()
}
func (s *Store) SetLifecycle(id, channel, ts string) error {
s.mu.Lock()
defer s.mu.Unlock()
if u, ok := s.data.Owners[id]; ok {
u.LifecycleChannel, u.LifecycleTS = channel, ts
return s.save()
}
return nil
}
func (s *Store) SetIdleTimeout(id string, d time.Duration) error {
s.mu.Lock()
defer s.mu.Unlock()