Skip to content

Commit

Permalink
Make worker queues durable (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdomke authored Dec 9, 2022
1 parent f100caf commit eb2d21f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/eventsourcing/messaging/bus_rabbitmq.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ func (b *rabbitEventBus) addHandler(ctx context.Context, handler evs.EventHandle
}
if workQueueName == "" {
options = append(options, rabbitmq.WithConsumeOptionsQueueExclusive)
} else {
options = append(options, rabbitmq.WithConsumeOptionsQueueDurable)
}

err := b.consumer.StartConsuming(
Expand Down

0 comments on commit eb2d21f

Please sign in to comment.