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

add different handling for feed and preload (schedule) fixtures #16

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

MSalopek
Copy link
Contributor

A bug manifested where the SDK would not fetch the latest fixture from the API in case there were 2 back-to-back fixture changes sent by the feed wihin 1 minute.

Since we always need the latest fixture state and poll the fixture API upon receiving a fixture_change message it is useful to know whether or not the fixture getter function is invoked from a preload loop or as a response to a fixture_change.

In case the fixture getter is invoked in response to a fixture_change message, it will always result in a fixture API poll - the checking for the fixture age will be skipped.

In case we are doing a preload, the old rule will stil apply - the fixture age will be checked in the fixture.expireMap.

@gljubojevic gljubojevic merged commit bc6fc51 into minus5:master Jul 16, 2020
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