Skip to content

Commit

Permalink
fix example test
Browse files Browse the repository at this point in the history
  • Loading branch information
amirylm committed Oct 2, 2023
1 parent 71bcf90 commit 0a11f00
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions examples/don/tests/testdon.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,7 @@ func (d *mockedDon) run(interval time.Duration, subscribedDONs ...string) {
case <-ctx.Done():
return
case <-ticker.C:
next := d.nextReport()

d.lock.Lock()
d.reports = append(d.reports, *next)
d.lock.Unlock()

d.broadcast(next)
d.broadcast(d.nextReport())
}
}
})
Expand Down

0 comments on commit 0a11f00

Please sign in to comment.