-
Notifications
You must be signed in to change notification settings - Fork 308
feat(hermes): add uniqueness check for benchmark price #1122
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Ignored Deployments
|
| .next() | ||
| .ok_or(RestError::UpdateDataNotFound)?; | ||
|
|
||
| // Currently Benchmarks API doesn't support returning the previous publish time. So we |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this comment also valid here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah i think they don't return it
|
|
||
| let publish_time = price_feed.price_feed.get_price_unchecked().publish_time; | ||
|
|
||
| // Currently Benchmarks API doesn't support returning the previous publish time. So we |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you expect the benchmark service to return 404 if not unique, why do we have this check here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This applies to the cache of Hermes.
m30m
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, added some minor comments
No description provided.