Skip to content

Commit

Permalink
feature/WS-1410: removed the mutex lock from the event dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
IshikaGopie committed Aug 16, 2024
1 parent ab69fe1 commit e0ec149
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions model/event_dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ func (e *DefaultEventDisptacher) Dispatch(ctx context.Context, event Event) []er
//mutex helps keep state between routines
var errors []error

e.dispatch.Lock()
defer e.dispatch.Unlock()
var wg sync.WaitGroup
for i := 0; i < len(e.handlers); i++ {
handler := e.handlers[i]
Expand Down

0 comments on commit e0ec149

Please sign in to comment.