Skip to content

Add token price and maxTime parameters #4

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

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

Big-Shark
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? yes
License MIT

What's in this PR?

This PR introduces two new parameters to the existing functionality:

$tokens: an integer representing the number of tokens required.
$maxTime: an optional float representing the maximum accepted waiting time in seconds.

Why?

This PR addresses the need to manage the number of tokens and the maximum waiting time in the application, providing more control over these parameters and enhancing the flexibility of the system.
And most importantly, it allows setting a maximum waiting time for blocking, making it easy to fall back when the limit is reached.

@ostrolucky
Copy link
Collaborator

LGTM. Can you check CI failures though?

@Big-Shark
Copy link
Contributor Author

@ostrolucky sure

@Big-Shark
Copy link
Contributor Author

@ostrolucky Sorry, I think I need some help with this build "Unit tests (7.4, lowest) (pull_request)"
I am not sure what's going on, because I didn't change composer.json/lock or something else

@ostrolucky
Copy link
Collaborator

Ok I'll investigate, thanks

@ostrolucky ostrolucky merged commit 725165c into php-http:main Jun 14, 2024
6 of 7 checks passed
@dbu
Copy link
Contributor

dbu commented Jun 15, 2024

the new parameters should be documented - but actually the whole plugin is missing an entry in the documentation repository. i created #5, would be awesome if one of you has time to document it.

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.

3 participants