add timing to debug not info, remove a clone that i dont think is needed
This commit is contained in:
@@ -189,7 +189,10 @@ public class BotController(
|
||||
|
||||
Task.WaitAll(tasks.ToArray());
|
||||
stopwatch.Stop();
|
||||
_logger.Info($"Took {stopwatch.ElapsedMilliseconds}ms to GenerateMultipleBotsAndCache");
|
||||
if (_logger.IsLogEnabled(LogLevel.Debug))
|
||||
{
|
||||
_logger.Debug($"Took {stopwatch.ElapsedMilliseconds}ms to GenerateMultipleBotsAndCache");
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
@@ -185,12 +185,11 @@ public class TraderController(
|
||||
public GetItemPricesResponse GetItemPrices(string sessionId, string traderId)
|
||||
{
|
||||
var handbookPrices = _ragfairPriceService.GetAllStaticPrices();
|
||||
var handbookPricesClone = _cloner.Clone(handbookPrices);
|
||||
|
||||
return new()
|
||||
{
|
||||
SupplyNextTime = _traderHelper.GetNextUpdateTimestamp(traderId),
|
||||
Prices = handbookPricesClone,
|
||||
Prices = handbookPrices,
|
||||
CurrencyCourses = new Dictionary<string, double>()
|
||||
{
|
||||
{ "5449016a4bdc2d6f028b456f", handbookPrices[Money.ROUBLES] },
|
||||
|
||||
Reference in New Issue
Block a user