chore: avoid boxing allocations

This commit is contained in:
Timothy Schenk 2023-11-25 15:15:34 +01:00
parent db155a87c0
commit fb5097ac71

View file

@ -23,7 +23,7 @@ public interface IPacketHandler<in T> : IPacketHandler where T : IPacket
using (var activity = new ActivitySource(nameof(Server)).StartActivity("HandleAsync"))
{
activity?.SetTag("Handler", this.ToString());
activity?.SetTag("PacketId", tPacket.ToString());
activity?.SetTag("PacketId", packet.ToString());
await HandleAsync(tPacket, session);
}