-
Notifications
You must be signed in to change notification settings - Fork 741
merkledb
/ sync
-- remove TODOs
#1718
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
@@ -566,7 +566,6 @@ func (db *merkleDB) GetChangeProof( | |||
return i.Compare(j) < 0 | |||
}) | |||
|
|||
// TODO: sync.pool these buffers |
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 don't think this would be worth the added cognitive load
// TODO danlaine: We won't release [m.workLock] until | ||
// we've started a goroutine for each available work item. | ||
// We can't apply proofs we receive until we release [m.workLock]. | ||
// Is this OK? Is it possible we end up with too many goroutines? |
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.
This was fixed a while back by the above case:
case m.processingWorkItems >= m.config.SimultaneousWorkLimit:
// We're already processing the maximum number of work items.
// Wait until one of them finishes.
m.unprocessedWorkCond.Wait()
I'm down to remove it |
Why this should be merged
I think these TODOs are TODONT's
How this works
Remove comments
How this was tested
N/A