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 login sequence so that it no longer depends on unrelated server messages #809

Merged
merged 12 commits into from
Feb 19, 2024

Conversation

jpdillingham
Copy link
Owner

#805 improved logging in this area but after thinking about it for a while I no longer think it's a good idea to even couple these things to the login; the data isn't necessary for the client to function.

This PR moves the handling of ParentMinSpeed, ParentSpeedRatio and WishlistInterval out of band.

The ServerInfoReceived event will fire each time any of the four captured properties is received; the first time at successful login, setting IsSupporter, and then once for each of the other three. The associated properties will remain null until the data is received, and if the server doesn't send it, no big deal.

The observed defaults for these properties are:

  • ParentMinSpeed: 1
  • ParentSpeedRatio: 50
  • WishlistInterval: 720 (seconds, or 12 minutes)

This PR also corrects a mistake in the documentation; WishlistInterval is expressed in seconds, not milliseconds. Anyone relying on this value to perform wishlist searches should make an adjustment immediately.

Copy link

codecov bot commented Feb 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c38fdb0) 99.39% compared to head (e1d4c67) 99.42%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #809      +/-   ##
==========================================
+ Coverage   99.39%   99.42%   +0.03%     
==========================================
  Files         183      183              
  Lines        6250     6257       +7     
  Branches      945      947       +2     
==========================================
+ Hits         6212     6221       +9     
+ Misses         21       20       -1     
+ Partials       17       16       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@jpdillingham jpdillingham merged commit 18eda2e into master Feb 19, 2024
5 checks passed
@jpdillingham jpdillingham deleted the server-info-refactor branch February 19, 2024 23:09
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.

1 participant