Browse Source

modify rabbitmq queue to use no exclusive.

master
yangxiaodong 7 years ago
parent
commit
4aa25520e1
2 changed files with 1 additions and 2 deletions
  1. +0
    -1
      src/DotNetCore.CAP.Kafka/IProcessor.KafkaJobProcessor.cs
  2. +1
    -1
      src/DotNetCore.CAP.RabbitMQ/RabbitMQConsumerClient.cs

+ 0
- 1
src/DotNetCore.CAP.Kafka/IProcessor.KafkaJobProcessor.cs View File

@@ -100,7 +100,6 @@ namespace DotNetCore.CAP.Kafka

message.StatusName = StatusName.Succeeded;
await messageStore.UpdateSentMessageAsync(message);

_logger.JobExecuted(sp.Elapsed.TotalSeconds);
}
catch (Exception ex)


+ 1
- 1
src/DotNetCore.CAP.RabbitMQ/RabbitMQConsumerClient.cs View File

@@ -45,7 +45,7 @@ namespace DotNetCore.CAP.RabbitMQ
_connection = _connectionFactory.CreateConnection();
_channel = _connection.CreateModel();
_channel.ExchangeDeclare(exchange: _exchageName, type: _rabbitMQOptions.EXCHANGE_TYPE);
_channel.QueueDeclare(_queueName);
_channel.QueueDeclare(_queueName, exclusive: false);
}

public void Listening(TimeSpan timeout)


Loading…
Cancel
Save