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

Change positioning of timer::pause in human checker fixing bug where API would panic no matter what #126

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

bee-san
Copy link
Owner

@bee-san bee-san commented Dec 7, 2022

Previously our logic looked like this:

  • Check to see if API is on, if it is return True
  • If it's not, pause human checker
  • Perform human checker

This led to a glitch where the program would return with something, but the timer would still run and return a panic.

As we always return True for the HumanChecker if our API is on, we do not need to worry about whether or not the data passes any human checks and can just pause it.

Previously our logic looked like this:
* Check to see if API is on, if it is return True
* If it's not, pause human checker
* Perform human checker

This led to a glitch where the program would return with something, but the timer would still run and return a panic.

As we always return True for the HumanChecker if our API is on, we do not need to worry about whether or not the data passes any human checks and can just pause it.
@bee-san bee-san changed the title Change positioning of timer::pause in human checker Change positioning of timer::pause in human checker fixing bug where API would panic no matter what Dec 7, 2022
@SkeletalDemise SkeletalDemise merged commit 04fdc8d into main Dec 8, 2022
@delete-merged-branch delete-merged-branch bot deleted the bee-general-fixes branch December 8, 2022 03:08
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.

2 participants