Some latency bug found
This commit is contained in:
@@ -9,9 +9,9 @@ namespace Example.Backend
|
||||
[SharedObjectSingleton]
|
||||
public class LoadTestImp : ILoadTest
|
||||
{
|
||||
public int Next(int last)
|
||||
public Task<int> Next(int last)
|
||||
{
|
||||
return last + 1;
|
||||
return Task.FromResult( last + 1);
|
||||
}
|
||||
|
||||
public int Last(int next)
|
||||
|
||||
@@ -20,7 +20,7 @@ class Program
|
||||
builder.Modules.Add(new BackendIdentityGenerator());
|
||||
// builder.UseNetworkGateway(new IPEndPoint(IPAddress.Loopback, 4567), typeof(NextGenerationInteractionModule),
|
||||
// builder.GetModule<IIdentityGenerator>()!);
|
||||
var listening = new IPEndPoint(IPAddress.Loopback, 4567);
|
||||
var listening = new IPEndPoint(IPAddress.Any, 4567);
|
||||
builder.UseNetworkGateway(listening, typeof(ChannelInteractionModule),
|
||||
builder.GetModule<IIdentityGenerator>()!);
|
||||
builder.Modules.Add(new UdpGateway(listening));
|
||||
|
||||
Reference in New Issue
Block a user