Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
poonai committed Mar 22, 2024
1 parent e231a73 commit 80851f7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ethmonitor/ethmonitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -987,9 +987,7 @@ func (m *Monitor) NumSubscribers() int {
func (m *Monitor) UnsubscribeAll(err error) {
m.mu.Lock()
var subs []*subscriber
for _, sub := range m.subscribers {
subs = append(subs, sub)
}
subs = append(subs, m.subscribers...)
m.mu.Unlock()

for _, sub := range subs {
Expand Down

0 comments on commit 80851f7

Please sign in to comment.