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

refactor: remove guzzlehttp/guzzle & ramsey/uuid #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jmtt89
Copy link

@jmtt89 jmtt89 commented May 17, 2022

With these changes, the need for future maintenance of the library should be reduced.

  • Remove guzzlehttp/guzzle and add custom CURL implementation for http request
  • Remove ramsey/uuid for random_compat in >= php7 and use paragonie/random_compat polyfill for random_bytes() in PHP 5.x

@@ -198,7 +198,7 @@ protected function fallback($topLevelError, $jobs)
$result->error = $topLevelError;
$result->results = array_map(function (\WF\Hypernova\Job $job) {
$jobResult = new JobResult();
$uuid = \Ramsey\Uuid\Uuid::uuid4();
$uuid = random_bytes(16);

Choose a reason for hiding this comment

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

This can cause conflicts, should be a uuid

Copy link
Author

Choose a reason for hiding this comment

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

The id only need to be unique on every render, not need to be globally unique...

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.

None yet

3 participants