Skip to content

Commit

Permalink
Disable addCatchUpResponse
Browse files Browse the repository at this point in the history
- Not implemented yet (see #1531)
- Can be a possible memory leak
  • Loading branch information
qdm12 committed May 4, 2022
1 parent 368f8b6 commit 2e27ead
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/grandpa/message_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ func (t *tracker) addCommit(cm *CommitMessage) {
t.commitMessages[cm.Vote.Hash] = cm
}

func (t *tracker) addCatchUpResponse(cr *CatchUpResponse) {
func (t *tracker) addCatchUpResponse(cr *CatchUpResponse) { //nolint:unparam
t.catchUpResponseMessageMutex.Lock()
defer t.catchUpResponseMessageMutex.Unlock()
t.catchUpResponseMessages[cr.Round] = cr
// uncomment when usage is setup properly, see #1531
// t.catchUpResponseMessages[cr.Round] = cr
}

func (t *tracker) handleBlocks() {
Expand Down

0 comments on commit 2e27ead

Please sign in to comment.