Skip to content

Commit

Permalink
The PrimitiveHelper has been deprecated in the latest AutoMapper libr…
Browse files Browse the repository at this point in the history
…ary. Use LINQ syntax instead.
  • Loading branch information
chopin-fan committed Jul 22, 2024
1 parent 08171e6 commit f85ca0b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public async Task<long> SendMessageAsync(long from, long to, CancellationToken c
}

var queryHeightLog = new StringBuilder($"Query height from: {from} to: {to}: ");
blockMessageList.ForAll(b => queryHeightLog.Append($"|{b.Height}|"));
//blockMessageList.ForAll(b => queryHeightLog.Append($"|{b.Height}|"));
queryHeightLog.Append(string.Join("", blockMessageList.Select(b => $"|{b.Height}|")));
_logger.LogInformation(queryHeightLog.ToString());
var sortedMessageQuery = blockMessageList.OrderBy(b => b.Height);
long heightIndex = 0;
Expand Down

0 comments on commit f85ca0b

Please sign in to comment.