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

Decouple hb from step walker #5292

Merged
merged 3 commits into from
Sep 8, 2016
Merged

Decouple hb from step walker #5292

merged 3 commits into from
Sep 8, 2016

Conversation

sohje
Copy link
Contributor

@sohje sohje commented Sep 8, 2016

Short Description:

Decouple hb from step walker due to #5243

Fixes/Resolves/Closes (please use correct syntax):

  • Fix

@mention-bot
Copy link

@sohje, thanks for your PR! By analyzing the annotation information on this pull request, we identified @anakin5, @mjmadsen and @alexyaoyang to be potential reviewers

@th3w4y
Copy link
Contributor

th3w4y commented Sep 8, 2016

@sohje what is calling heartbeat now?

@sohje
Copy link
Contributor Author

sohje commented Sep 8, 2016

@th3w4y Heartbeat works in separate thread now, with timer and another checks, like block hb from sniping.

@th3w4y
Copy link
Contributor

th3w4y commented Sep 8, 2016

@sohje That part i noticed, what is did not noticed yet is when is this called except .login()

Heartbeat works in separate thread now, with timer and another checks, like block hb from sniping.

@sohje
Copy link
Contributor Author

sohje commented Sep 8, 2016

@th3w4y

threading.Timer(self.heartbeat_threshold, self.heartbeat).start()

@th3w4y
Copy link
Contributor

th3w4y commented Sep 8, 2016

@sohje This is amazing 💯 %

so it is actually this change [when the threading.Timer(self.heartbeat_threshold, self.heartbeat).start()was introduced] that made the bot walk faster not our StepWalker PolylineWalker! and NOW the speeds match the reality! #5172 👍

@sohje
Copy link
Contributor Author

sohje commented Sep 8, 2016

@th3w4y How can this be possible? We sending requests as usual.
upd. sorry, was sleepy i thoughts you were talking about bad decision to move hb to scheduled thread 😆

@th3w4y
Copy link
Contributor

th3w4y commented Sep 8, 2016

@sohje but that is a good thing that we can respect the speed settings...

Because is done in parallel walking does not need to wait after heartbeat....

@th3w4y How can this be possible? We sending requests as usual.

@th3w4y th3w4y added Approved and removed Approved labels Sep 8, 2016
@th3w4y
Copy link
Contributor

th3w4y commented Sep 8, 2016

@sohje Looks perfect to me

like I was saying previous comments this actually fixes a real bug
(a new thread would have been spawn on every bot.tick())

@solderzzc
Copy link
Contributor

solderzzc commented Sep 8, 2016

👍

Approved with PullApprove

@solderzzc solderzzc merged commit 815862a into PokemonGoF:dev Sep 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants