Skip to content

Commit

Permalink
adding Mutex in eventstore
Browse files Browse the repository at this point in the history
  • Loading branch information
Raezil committed Dec 6, 2024
1 parent 430507b commit 4439125
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eventstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type EventStore struct {
// NewEventStore initializes an EventStore with a dispatcher and an event pool
func NewEventStore(dispatcher *Dispatcher) *EventStore {
return &EventStore{
Mutex: sync.Mutex{},
Dispatcher: dispatcher,
Events: &sync.Pool{
New: func() interface{} {
Expand Down

0 comments on commit 4439125

Please sign in to comment.