Skip to content

Commit 14976b9

Browse files
committed
Removed: unsued priority property
1 parent fd69ee9 commit 14976b9

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

src/Algolia.Search.Test/RetryStrategyTest/RetryStrategyTest.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,20 @@ public void TestRetryStrategyResetExpired(CallType callType)
4747
new StatefulHost
4848
{
4949
Url = "-1.algolianet.com",
50-
Priority = 0,
5150
Up = true,
5251
LastUse = DateTime.UtcNow,
5352
Accept = CallType.Read | CallType.Write,
5453
},
5554
new StatefulHost
5655
{
5756
Url = "-2.algolianet.com",
58-
Priority = 0,
5957
Up = true,
6058
LastUse = DateTime.UtcNow,
6159
Accept = CallType.Read | CallType.Write,
6260
},
6361
new StatefulHost
6462
{
6563
Url = "-3.algolianet.com",
66-
Priority = 0,
6764
Up = false,
6865
LastUse = DateTime.UtcNow,
6966
Accept = CallType.Read | CallType.Write,
@@ -147,4 +144,4 @@ public void TestRetryStrategyMultiThread(CallType callType)
147144
Assert.True(updatedHosts.Count() == 3);
148145
}
149146
}
150-
}
147+
}

src/Algolia.Search/Clients/SearchConfig.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,13 @@ public SearchConfig(string applicationId, string apiKey) : base(applicationId, a
4747
new StatefulHost
4848
{
4949
Url = $"{applicationId}-dsn.algolia.net",
50-
Priority = 10,
5150
Up = true,
5251
LastUse = DateTime.UtcNow,
5352
Accept = CallType.Read
5453
},
5554
new StatefulHost
5655
{
5756
Url = $"{applicationId}.algolia.net",
58-
Priority = 10,
5957
Up = true,
6058
LastUse = DateTime.UtcNow,
6159
Accept = CallType.Write,
@@ -67,23 +65,20 @@ public SearchConfig(string applicationId, string apiKey) : base(applicationId, a
6765
new StatefulHost
6866
{
6967
Url = $"{applicationId}-1.algolianet.com",
70-
Priority = 0,
7168
Up = true,
7269
LastUse = DateTime.UtcNow,
7370
Accept = CallType.Read | CallType.Write,
7471
},
7572
new StatefulHost
7673
{
7774
Url = $"{applicationId}-2.algolianet.com",
78-
Priority = 0,
7975
Up = true,
8076
LastUse = DateTime.UtcNow,
8177
Accept = CallType.Read | CallType.Write,
8278
},
8379
new StatefulHost
8480
{
8581
Url = $"{applicationId}-3.algolianet.com",
86-
Priority = 0,
8782
Up = true,
8883
LastUse = DateTime.UtcNow,
8984
Accept = CallType.Read | CallType.Write,
@@ -95,4 +90,4 @@ public SearchConfig(string applicationId, string apiKey) : base(applicationId, a
9590
DefaultHosts = hosts;
9691
}
9792
}
98-
}
93+
}

src/Algolia.Search/Transport/StatefulHost.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ public class StatefulHost
4141
/// </summary>
4242
public bool Up { get; set; } = true;
4343

44-
/// <summary>
45-
/// Host's priority
46-
/// </summary>
47-
public int Priority { get; set; }
48-
4944
/// <summary>
5045
/// Retry count
5146
/// </summary>
@@ -61,4 +56,4 @@ public class StatefulHost
6156
/// </summary>
6257
public CallType Accept { get; set; }
6358
}
64-
}
59+
}

0 commit comments

Comments
 (0)