From aa420c9902821d7a0ac3bb97c70cdf131bf8b509 Mon Sep 17 00:00:00 2001 From: Hans Moog <3293976+hmoog@users.noreply.github.com> Date: Sun, 3 Dec 2023 22:11:38 +0100 Subject: [PATCH] Refactor: addressed linter issues --- pkg/protocol/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/protocol/protocol.go b/pkg/protocol/protocol.go index fbc08d562..436ef0dcd 100644 --- a/pkg/protocol/protocol.go +++ b/pkg/protocol/protocol.go @@ -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 })