Skip to content

Commit

Permalink
Refactor: addressed linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hmoog committed Dec 3, 2023
1 parent 8a2a19e commit aa420c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/protocol/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (p *Protocol) waitInitialized() {
var waitInitialized sync.WaitGroup

waitInitialized.Add(1)
p.Commitments.Root.OnUpdateOnce(func(_, rootCommitment *Commitment) {
p.Commitments.Root.OnUpdateOnce(func(_ *Commitment, _ *Commitment) {
waitInitialized.Done()
}, func(_ *Commitment, rootCommitment *Commitment) bool { return rootCommitment != nil })

Expand Down

0 comments on commit aa420c9

Please sign in to comment.