mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add internal rate limit for rdap queries
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Command;
|
||||
|
||||
use App\Message\ProcessWatchlistTrigger;
|
||||
use App\Message\ProcessAllWatchlist;
|
||||
use Symfony\Component\Console\Attribute\AsCommand;
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
@@ -33,7 +33,7 @@ class ProcessWatchlistCommand extends Command
|
||||
{
|
||||
$io = new SymfonyStyle($input, $output);
|
||||
|
||||
$this->bus->dispatch(new ProcessWatchlistTrigger());
|
||||
$this->bus->dispatch(new ProcessAllWatchlist());
|
||||
|
||||
$io->success('Watchlist processing triggered!');
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace App\Command;
|
||||
|
||||
use App\Entity\Watchlist;
|
||||
use App\Message\SendDomainEventNotif;
|
||||
use App\Message\DetectDomainChange;
|
||||
use App\Repository\DomainRepository;
|
||||
use App\Service\RDAPService;
|
||||
use Random\Randomizer;
|
||||
@@ -64,7 +64,7 @@ class RegisterDomainCommand extends Command
|
||||
|
||||
/** @var Watchlist $watchlist */
|
||||
foreach ($watchlists as $watchlist) {
|
||||
$this->bus->dispatch(new SendDomainEventNotif($watchlist->getToken(), $domain->getLdhName(), $updatedAt));
|
||||
$this->bus->dispatch(new DetectDomainChange($watchlist->getToken(), $domain->getLdhName(), $updatedAt));
|
||||
}
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
|
||||
Reference in New Issue
Block a user