-
Notifications
You must be signed in to change notification settings - Fork 95
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
New slot ticker #1149
New slot ticker #1149
Conversation
d506b83
to
ed37f67
Compare
ed37f67
to
a56770c
Compare
a56770c
to
10cbf6e
Compare
66b02e8
to
5ff3421
Compare
5ff3421
to
a12d39b
Compare
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.
Great work! Approving. Just one minor question
7b07dab
to
a248afa
Compare
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.
I really liked the slot skipping test 👌
Left only 1 question.
7150604
to
faa6416
Compare
faa6416
to
6b35ba3
Compare
"github.com/bloxapp/ssv/protocol/v2/types" | ||
) | ||
|
||
//go:generate mockgen -package=mocks -destination=./mocks/scheduler.go -source=./scheduler.go | ||
|
||
var slotDelayHistogram = promauto.NewHistogram(prometheus.HistogramOpts{ | ||
Name: "slot_ticker_delay_milliseconds", |
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.
According to Prometheus naming guidelines:
...must have a single unit (i.e. do not mix seconds with milliseconds, or seconds with bytes).
...should use base units (e.g. seconds, bytes, meters - not milliseconds, megabytes, kilometers). See below for a list of base units.
Also, other metrics in the project use the _seconds
suffix, so we might need to consider making them consistent. On the other hand, I don't foresee any issues if we don't change it. So this is rather a suggestion, not a change request.
* Message validation (#1066) --------- Co-authored-by: moshe-blox <moshe@blox.io> Co-authored-by: moshe-blox <89339422+moshe-blox@users.noreply.github.com> * e2e tests for eth execution layer package (#1143) * New slot ticker (#1149) --------- Co-authored-by: Matus Kysel <matus@Matuss-MacBook-Air.local> Co-authored-by: moshe-blox <moshe@blox.io> --------- Co-authored-by: Nikita Kryuchkov <nkryuchkov10@gmail.com> Co-authored-by: moshe-blox <moshe@blox.io> Co-authored-by: moshe-blox <89339422+moshe-blox@users.noreply.github.com> Co-authored-by: Anton Korpusenko <antokorp@gmail.com> Co-authored-by: Matus Kysel <MatusKysel@users.noreply.github.com> Co-authored-by: Matus Kysel <matus@Matuss-MacBook-Air.local>
New feed-less, gorountine-less slot ticker that is based on golang Timer