run test on phase 24 and 33
This commit is contained in:
+4
-10
@@ -38,8 +38,9 @@ public sealed class NotificationPublisherService : BackgroundService
|
||||
var consumerConfig = new ConsumerConfig
|
||||
{
|
||||
BootstrapServers = _kafkaOptions.BootstrapServers,
|
||||
GroupId = "notification-publisher",
|
||||
AutoOffsetReset = AutoOffsetReset.Earliest,
|
||||
GroupId = _kafkaOptions.NotificationPublisherGroupId,
|
||||
AutoOffsetReset = Enum.Parse<AutoOffsetReset>(
|
||||
_kafkaOptions.NotificationPublisherAutoOffsetReset, ignoreCase: true),
|
||||
EnableAutoCommit = false,
|
||||
};
|
||||
|
||||
@@ -163,13 +164,6 @@ public sealed class NotificationPublisherService : BackgroundService
|
||||
private IConnectionFactory BuildRabbitFactory()
|
||||
{
|
||||
var o = _rabbitOpts.Value;
|
||||
return new ConnectionFactory
|
||||
{
|
||||
HostName = o.Host,
|
||||
Port = o.Port,
|
||||
UserName = o.Username,
|
||||
Password = o.Password,
|
||||
DispatchConsumersAsync = true,
|
||||
};
|
||||
return RabbitMqConnectionFactory.Create(o, dispatchConsumersAsync: true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user