better startup flow
This commit is contained in:
1 parent
d7f5dba677
commit
650bcff83a
8 files changed
+345
-68
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user