mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-22 12:53:04 +08:00
Refactoring
This commit is contained in:
@@ -33,7 +33,7 @@ namespace MQTTnet.Core.Tests
|
||||
|
||||
foreach (var packet in packets)
|
||||
{
|
||||
Partner.SendPacketInternal(packet);
|
||||
Partner.EnqueuePacketInternal(packet);
|
||||
}
|
||||
|
||||
return Task.FromResult(0);
|
||||
@@ -46,7 +46,7 @@ namespace MQTTnet.Core.Tests
|
||||
return Task.Run(() => _incomingPackets.Take(), cancellationToken);
|
||||
}
|
||||
|
||||
private void SendPacketInternal(MqttBasePacket packet)
|
||||
private void EnqueuePacketInternal(MqttBasePacket packet)
|
||||
{
|
||||
if (packet == null) throw new ArgumentNullException(nameof(packet));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user