// startCleanup initiates a non-stopping cleanup cycle.
startCleanup initiates a non-stopping cleanup cycle.
// startCleanup initiates a non - stopping cleanup cycle .
func (s *Store) startCleanup(d time.Duration) {
	if d == 0 {
		return
	}
	t := time.NewTicker(d)
	for {
		if err := s.deleteInactive(); err != nil {
			logutil.Critical(s.log, err).Msg("cannot delete inactive")
		}
		<-t.C
	}
}
func ( s * Store ) startCleanup ( d time . Duration ) { if d == 0 { return } t := time . NewTicker ( d ) for { if err := s . deleteInactive ( ) ; err != nil { logutil . Critical ( s . log , err ) . Msg ( " " ) } <- t . C } }
startCleanup initiates a non-stopping cleanup cycle.
startCleanup initiates a non - stopping cleanup cycle .