浏览代码

fix code quality issues

release/3.x.x
JanEggers 7 年前
父节点
当前提交
a4d393ae28
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      Tests/MQTTnet.TestApp.NetFramework/PerformanceTest.cs

+ 3
- 3
Tests/MQTTnet.TestApp.NetFramework/PerformanceTest.cs 查看文件

@@ -11,14 +11,14 @@ using System.Threading.Tasks;

namespace MQTTnet.TestApp.NetFramework
{
public class PerformanceTest
public static class PerformanceTest
{
public static async Task RunAsync()
{
var server = Task.Run(() => RunServerAsync());
var client = Task.Run(() => RunClientAsync(50, TimeSpan.FromMilliseconds(10)));

await Task.WhenAll(server, client);
await Task.WhenAll(server, client).ConfigureAwait(false);
}

private static async Task RunClientAsync( int msgChunkSize, TimeSpan interval )
@@ -102,7 +102,7 @@ namespace MQTTnet.TestApp.NetFramework
last = now;
}

await Task.Delay(interval);
await Task.Delay(interval).ConfigureAwait(false);
}
}
catch (Exception exception)


正在加载...
取消
保存