func (s *Service) purgeInfoCheck(name string) {
	// check to see if we need to purge old information
	if infos, err := s.db.GetNumInfos(name); err == nil {
		if infos > 512 {
			s.logger.Debug("purging old infos")
			if err := s.db.PurgeOldInfos(name, 512); err != nil {
				s.logger.Error("failed to purge old infos", zap.Error(err))
			}
		}
	}
}
// performs a check to see if we need to purge records from the database
performs a check to see if we need to purge records from the database
// performs a check to see if we need to purge records from the database
func (s *Service) purgeInfoCheck(name string) {
	if infos, err := s.db.GetNumInfos(name); err == nil {
		if infos > 512 {
			s.logger.Debug("purging old infos")
			if err := s.db.PurgeOldInfos(name, 512); err != nil {
				s.logger.Error("failed to purge old infos", zap.Error(err))
			}
		}
	}
}
func ( s * Service ) purgeInfoCheck ( name string ) { if infos , err := s . db . GetNumInfos ( name ) ; err == nil { if infos > 512 { s . logger . Debug ( " " ) if err := s . db . PurgeOldInfos ( name , 512 ) ; err != nil { s . logger . Error ( " " , zap . Error ( err ) ) } } } }
performs a check to see if we need to purge records from the database
performs a check to see if we need to purge records from the database
// check to see if we need to purge old information