start method

  1. @override
Future<void> start()

Starts the service, loads the initial denylist, and schedules refreshes.

Implementation

@override
Future<void> start() async {
  if (_started) return;
  _started = true;

  if (!_config.enableDenylist) {
    _logger.info('Denylist service is disabled by configuration');
    return;
  }

  await _loadInitial();
  _scheduleRefreshTimer();
}