Browse Source

Merge pull request #2273 from DamirAinullin/improve_linq_query

Use id instead of calculating server.Identifier()
tags/4.1.9.0
Student Main GitHub 4 years ago
parent
commit
0acf50ffcb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs

+ 1
- 1
shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs View File

@@ -90,7 +90,7 @@ namespace Shadowsocks.Controller.Strategy
var serversWithStatistics = (from server in servers
let id = server.Identifier()
where _filteredStatistics.ContainsKey(id)
let score = GetScore(server.Identifier(), _filteredStatistics[server.Identifier()])
let score = GetScore(id, _filteredStatistics[id])
where score != null
select new
{


Loading…
Cancel
Save