Commit 2e81f2bc authored by Savorboard's avatar Savorboard

add determines whether the query is null.

parent 93805966
......@@ -32,6 +32,13 @@ namespace DotNetCore.CAP
public async Task<OperateResult> ExecuteAsync(IStorageConnection connection, IFetchedMessage fetched)
{
var message = await connection.GetReceivedMessageAsync(fetched.MessageId);
if (message == null)
{
_logger.LogError($"Can not find mesage at cap received message table, message id:{fetched.MessageId} !!!");
return OperateResult.Failed();
}
try
{
var sp = Stopwatch.StartNew();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment