Skip to content

Commit

Permalink
Removing unused "DoSleep"
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtursKadikis committed Jan 25, 2024
1 parent b71fcd6 commit dec8ae0
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 52 deletions.
2 changes: 0 additions & 2 deletions countlyCommon/countlyCommon/Server/ApiBase.cs
Expand Up @@ -17,8 +17,6 @@ abstract class ApiBase
{
internal const int maxLengthForDataInUrl = 2000;

protected abstract Task DoSleep(int sleepTime);

public async Task<RequestResult> SendSession(string serverUrl, int rr, SessionEvent sessionEvent, CountlyUserDetails userDetails = null)
{
string userDetailsJson = string.Empty;
Expand Down
5 changes: 0 additions & 5 deletions net35/Countly/Server/Api.cs
Expand Up @@ -96,10 +96,5 @@ private static void CopyStream(Stream sourceStream, Stream targetStream)
targetStream.Write(buffer, 0, n);
}
}

protected override async Task DoSleep(int sleepTime)
{
Thread.Sleep(sleepTime);
}
}
}
5 changes: 0 additions & 5 deletions net45/Countly/Server/Api.cs
Expand Up @@ -96,10 +96,5 @@ private static void CopyStream(Stream sourceStream, Stream targetStream)
targetStream.Write(buffer, 0, n);
}
}

protected override async Task DoSleep(int sleepTime)
{
Thread.Sleep(sleepTime);
}
}
}
143 changes: 108 additions & 35 deletions netstd/Countly/Countly.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions netstd/Countly/Server/Api.cs
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using CountlySDK.CountlyCommon.Server;
using CountlySDK.CountlyCommon.Server.Responses;
Expand Down Expand Up @@ -72,10 +73,5 @@ protected override async Task<RequestResult> RequestAsync(string address, String
return requestResult;
}
}

protected override async Task DoSleep(int sleepTime)
{
System.Threading.Tasks.Task.Delay(sleepTime).Wait();
}
}
}

0 comments on commit dec8ae0

Please sign in to comment.