Skip to content

Commit

Permalink
Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonastheis committed Feb 14, 2024
1 parent 3cbfb45 commit 12585b7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/protocol/commitment.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,9 @@ func (c *Commitment) initDerivedProperties() (shutdown func()) {
// deriveChildren derives the children of this Commitment by adding the given child to the Children set.
func (c *Commitment) deriveChildren(child *Commitment) (unregisterChild func()) {
c.MainChild.Compute(func(mainChild *Commitment) *Commitment {
c.LogInfo("adding child", "parent", c.LogName(), "child", child.LogName(), "childCount", c.Children.Size())

if !c.Children.Add(child) || mainChild != nil {
c.LogInfo("maybe added child?", "parent", c.LogName(), "child", child.LogName(), "childCount", c.Children.Size())

return mainChild
}
c.LogInfo("added child", "parent", c.LogName(), "child", child.LogName(), "childCount", c.Children.Size())

return child
})
Expand Down

0 comments on commit 12585b7

Please sign in to comment.