Delay between requests even when user is not found.

This commit is contained in:
Alexey Skobkin 2017-01-14 05:01:35 +03:00
parent 2d8bd6f6fc
commit b5b10b3072

View file

@ -177,6 +177,8 @@ class UpdateSubscriptionsCommand extends ContainerAwareCommand
{
// Updating users subscribers
foreach ($users as $user) {
usleep($this->apiDelay);
$this->logger->info('Processing @'.$user->getLogin());
try {
@ -215,8 +217,6 @@ class UpdateSubscriptionsCommand extends ContainerAwareCommand
}
$this->progress->advance();
usleep($this->apiDelay);
}
}