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

Set updated_at on token update even if there are no changes #7055

Merged
merged 1 commit into from Mar 13, 2023

Conversation

Qwerty5Uiop
Copy link
Collaborator

@Qwerty5Uiop Qwerty5Uiop commented Mar 9, 2023

Motivation

Currently, Indexer.Fetcher.TokenUpdater collects tokens to be updated based on updated_at field. But if there are no actual changes for token, such an 'empty' update doesn't affect the updated_at field, which means that this token will be recognised as not updated on the next check and, therefore, there will be additional eth_calls even if this token was checked recently.

Changelog

Set updated_at field manually on Explorer.Chain.update_token/2 so empty updates will be 'stored' in updated_at field.

@vbaranov vbaranov merged commit d181fde into master Mar 13, 2023
16 checks passed
@vbaranov vbaranov deleted the decrease-eth-call-calls branch March 13, 2023 10:39
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.

None yet

2 participants