Skip to content

Commit

Permalink
fix: bug in eventstore.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Raezil committed Dec 7, 2024
1 parent dbed127 commit 26df127
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions eventstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,6 @@ func (eventstore *EventStore) BroadcastWithRabbitMQ() error {
continue
}

// Publish the event to RabbitMQ
err := eventstore.PublishToRabbitMQ(event)
if err != nil {
log.Printf("Failed to publish event ID %s: %v", event.Id, err)
lastErr = err // Record the last error encountered
continue
}

// Optionally, handle the event if there's a dispatcher
if eventstore.Dispatcher != nil {
handler, exists := (*eventstore.Dispatcher)[event.Projection]
Expand Down

0 comments on commit 26df127

Please sign in to comment.