Skip to content

Conversation

@joojis
Copy link
Contributor

@joojis joojis commented Jul 2, 2019

No description provided.

@joojis joojis requested a review from remagpie July 2, 2019 09:34
@majecty majecty self-requested a review July 2, 2019 09:41
Copy link
Contributor

@majecty majecty left a comment

Choose a reason for hiding this comment

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

How about using the same DB transaction for the removeOutdatedPendings function?
Even if the indexer does not use a DB transaction for the removeOutdatedPendings function, there is no problem now, since the removeOutdatedPendings function only has one DB query.

However, if removeOutdatedPendings function uses two more queries in the future, it could be a bug which is hard to find the cause.

@joojis joojis removed the request for review from remagpie July 2, 2019 10:00
@joojis joojis force-pushed the db-tx-for-pending branch from b1e8bf5 to 104433c Compare July 2, 2019 10:00
@joojis
Copy link
Contributor Author

joojis commented Jul 2, 2019

@majecty Thanks for the review, I fixed it.

@joojis joojis merged commit 95c3577 into CodeChain-io:master Jul 2, 2019
@joojis joojis deleted the db-tx-for-pending branch July 2, 2019 10:08
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