From e0ec149172ba6575c4ed915b64706488a07901fd Mon Sep 17 00:00:00 2001 From: Ishika_Gopie Date: Fri, 16 Aug 2024 13:00:41 -0400 Subject: [PATCH] feature/WS-1410: removed the mutex lock from the event dispatcher --- model/event_dispatcher.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/model/event_dispatcher.go b/model/event_dispatcher.go index 7a92e0c7..f56167d9 100644 --- a/model/event_dispatcher.go +++ b/model/event_dispatcher.go @@ -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]