recordSuccess method

void recordSuccess(
  1. String url
)

Records a successful scrape for the given URL

Implementation

void recordSuccess(String url) {
  final domain = _extractDomain(url);
  if (domain == null) return;

  _siteReputations.putIfAbsent(domain, () => SiteReputation(domain));
  _siteReputations[domain]!.recordSuccess();
  _pruneOldEntries();
}