Skip to content

Commit

Permalink
rename ambiguous method
Browse files Browse the repository at this point in the history
  • Loading branch information
NickKhalow committed Jan 22, 2025
1 parent 88dd0d7 commit 7b1ff85
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected override void DisposeInternal()
lastInput.Clear();
}

private void SendBinary(IList<object> dataList, string? recipient)
private void SendBinaryToParticipants(IList<object> dataList, string? recipient)
{
try
{
Expand Down Expand Up @@ -73,12 +73,12 @@ private void SendBinary(IList<object> dataList, string? recipient)

[UsedImplicitly]
public object SendBinary(IList<object> broadcastData) =>
SendBinary(broadcastData, (IList<object>?)null);
SendBinary(broadcastData, null);

[UsedImplicitly]
public object SendBinary(IList<object> broadcastData, IList<object>? peerData)
{
SendBinary(broadcastData, (string?)null);
SendBinaryToParticipants(broadcastData, null);

if (peerData != null)
for (var i = 0; i < peerData.Count; i++)
Expand All @@ -94,15 +94,15 @@ public object SendBinary(IList<object> broadcastData, IList<object>? peerData)
continue;

if (recipient.Count is 0)
SendBinary(data, (string?)null);
SendBinaryToParticipants(data, null);

foreach (object? address in recipient)
if (address != null)
{
var stringAddress = (string)address;

if (!string.IsNullOrEmpty(stringAddress))
SendBinary(data, stringAddress);
SendBinaryToParticipants(data, stringAddress);
}
}
}
Expand Down

0 comments on commit 7b1ff85

Please sign in to comment.