-
Notifications
You must be signed in to change notification settings - Fork 119
add support to configure max latency #391
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
| uint8_t min_pub_; // min publishers for valid price | ||
| int8_t drv2_; // space for future derived values | ||
| int16_t drv3_; // space for future derived values | ||
| int8_t message_sent_; // flag to indicate if the current aggregate price has been sent as a message to the message buffer, 0 if not sent, 1 if sent |
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.
drive-by: this was already changed in the rust program previously but wasn't changed here
| int8_t drv2_; // space for future derived values | ||
| int16_t drv3_; // space for future derived values | ||
| int8_t message_sent_; // flag to indicate if the current aggregate price has been sent as a message to the message buffer, 0 if not sent, 1 if sent | ||
| uint8_t max_latency_; // configurable max latency in slots between send and receive |
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.
we only need uint8_t for max_latency_ so splitting it to uint8_t and int8_t
ceeada2 to
74c6366
Compare
ali-behjati
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.
Very nice! I will look again after you addressed the feedbacks (just to be extra careful).
ali-behjati
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.
Nice! I left some minor comments.
ali-behjati
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.
Nice! I left some minor comments.
add configurable max latency in slots between send and receive
for price feeds with more publishers this can be reduced instead of using the default 25 value to reduce latency