-
Notifications
You must be signed in to change notification settings - Fork 44
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
logs are forwarded to a processor in slot and trx order #953
Conversation
094f9cb
to
72089b2
Compare
f407d8f
to
f9824d9
Compare
f9824d9
to
376697e
Compare
pkg/solana/logpoller/loader.go
Outdated
|
||
func (p *orderedParser) sendReadySlots() error { | ||
// start at the lowest block and find ready blocks | ||
for element := p.blocks.Front(); element != nil; element = element.Next() { |
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.
for element := p.blocks.Front(); element != nil; element = element.Next() { | |
for element := p.blocks.Front(); element != nil; element = p.blocks.Front() { |
To drop
temp := element.Prev()
if temp == nil {
break
}
element = temp
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.
Also due to break, there is a leak of expectations.
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.
Ahh ok. I was just using the iteration method in the docs. This works better. Thanks
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
Quality Gate passedIssues Measures |
* logs are forwarded to a processor in slot and trx order * make tests pass again * simplify block and expectation ordering
Description
Log ingestion heavily leverages async go-routines but
LogPoller
will rely on logs delivered in slot/block order. This commit adds a new component to the log ingestion to order logs before forwarding them toLogPoller
.