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

vochain/indexer: replace newProcessPool with a sql.Tx #865

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

mvdan
Copy link
Contributor

@mvdan mvdan commented Mar 27, 2023

(see commit message)

And avoid calling newEmptyProcess directly from the tests,
as it's safer and easier for them to advance one block.

Co-Authored-By: María José Dávila <mariajdab@gmail.com>
data := &indexertypes.IndexerOnProcessData{EntityID: eid, ProcessID: pid}
idx.newProcessPool = append(idx.newProcessPool, data)
if err := idx.newEmptyProcess(pid); err != nil {
log.Errorw(err, "commit: cannot create new empty process")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing return

@p4u p4u merged commit df09c79 into vocdoni:master Mar 28, 2023
@mvdan mvdan deleted the block-tx branch April 28, 2023 20:10
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.

2 participants