Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use parallel http requests #79

Merged
merged 8 commits into from
Jan 25, 2024
Merged

Use parallel http requests #79

merged 8 commits into from
Jan 25, 2024

Conversation

staabm
Copy link
Owner

@staabm staabm commented Jan 19, 2024

closes #76

requires the next phpstan release: phpstan/phpstan-src#2882 in the next PHPStan release

@staabm staabm marked this pull request as ready for review January 19, 2024 12:32
@staabm
Copy link
Owner Author

staabm commented Jan 19, 2024

@EmilMassey could you double check whether this PR breaks something for you?

$responseCode = curl_getinfo($handle, CURLINFO_RESPONSE_CODE);
$result[$url] = [$responseCode, $response];

curl_multi_remove_handle($mh, $handle);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the curl PHP 7.4 phpstan errors are fixed with phpstan/phpstan-src#2882 in the next PHPStan release

/**
* @var array<string, ?string>
*/
private array $cache;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we no longer need the caching, because the fetcher now gets a full list of all ticket-keys without duplicates

@EmilMassey
Copy link
Contributor

@staabm Everything works as expected

@staabm staabm merged commit a197314 into main Jan 25, 2024
16 checks passed
@staabm
Copy link
Owner Author

staabm commented Jan 25, 2024

thanks

@staabm staabm deleted the parallel branch January 25, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reduce http requests
2 participants