Skip to content

Commit

Permalink
missed collection initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
Guriy Samarin committed Mar 11, 2024
1 parent 9ef1005 commit cbdbe6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/csharp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class CommandLineOptions
public int DataSize { get; set; } = 100;

[Option('c', "concurrentTasks", Required = false, HelpText = "The number of concurrent operations to perform.", Default = new[] { 1, 10, 100, 1000 })]
public IEnumerable<int> ConcurrentTasks { get; set; } = Enumerable.Empty<int>();
public IEnumerable<int> ConcurrentTasks { get; set; } = [];

[Option('l', "clients", Required = false, HelpText = "Which clients should run")]
public string ClientsToRun { get; set; } = "all";
Expand All @@ -36,7 +36,7 @@ public class CommandLineOptions
public string Host { get; set; } = "localhost";

[Option('C', "clientCount", Required = false, HelpText = "Number of clients to run concurrently", Default = new[] { 1 })]
public IEnumerable<int> ClientCount { get; set; } = Enumerable.Empty<int>();
public IEnumerable<int> ClientCount { get; set; } = [];

[Option('t', "tls", HelpText = "Should benchmark a TLS server")]
public bool Tls { get; set; } = false;
Expand Down

0 comments on commit cbdbe6b

Please sign in to comment.