Skip to content

Commit

Permalink
Removed RoutingStrategyConsistentKeyHashing
Browse files Browse the repository at this point in the history
Didn't have the time to get it working correctly.
  • Loading branch information
jordansjones committed Apr 27, 2015
1 parent 030d72a commit 0c81f45
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 125 deletions.
1 change: 0 additions & 1 deletion source/Draft/Draft-Net45.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
<Compile Include="Endpoints\Endpoint.cs" />
<Compile Include="Endpoints\EndpointRoutingStrategy.cs" />
<Compile Include="Endpoints\EndpointVerificationStrategy.cs" />
<Compile Include="Endpoints\RoutingStrategy.ConsistentKeyHashing.cs" />
<Compile Include="Endpoints\RoutingStrategy.First.cs" />
<Compile Include="Endpoints\RoutingStrategy.Random.cs" />
<Compile Include="Endpoints\RoutingStrategy.RoundRobin.cs" />
Expand Down
10 changes: 0 additions & 10 deletions source/Draft/Endpoints/EndpointRoutingStrategy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,12 @@ internal static EndpointRoutingStrategy Default

#region Built-in strategies

private static readonly Lazy<EndpointRoutingStrategy> LazyConsistenKeyHashing = new Lazy<EndpointRoutingStrategy>(() => new RoutingStrategyConsistentKeyHashing());

private static readonly Lazy<EndpointRoutingStrategy> LazyFirst = new Lazy<EndpointRoutingStrategy>(() => new RoutingStrategyFirst());

private static readonly Lazy<EndpointRoutingStrategy> LazyRandom = new Lazy<EndpointRoutingStrategy>(() => new RoutingStrategyRandom());

private static readonly Lazy<EndpointRoutingStrategy> LazyRoundRobin = new Lazy<EndpointRoutingStrategy>(() => new RoutingStrategyRoundRobin());

// /// <summary>
// /// Uses a consistent hashing algorithm on the etcd key to select the <see cref="Endpoint" />.
// /// </summary>
// public static EndpointRoutingStrategy ConsistentKeyHashing
// {
// get { return LazyConsistenKeyHashing.Value; }
// }

/// <summary>
/// Uses the first <see cref="Endpoint" />.
/// </summary>
Expand Down
22 changes: 0 additions & 22 deletions source/Draft/Endpoints/RoutingStrategy.ConsistentKeyHashing.cs

This file was deleted.

1 change: 0 additions & 1 deletion tests/Draft.Tests/Draft-Net45.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
<Compile Include="Tests\Keys\QueueRequestTests.cs" />
<Compile Include="Tests\Keys\WatchRequestTests.cs" />
<Compile Include="Tests\RoutingStrategies\BaseRoutingStrategyTests.cs" />
<Compile Include="Tests\RoutingStrategies\RoutingStrategyConsistentKeyHashingTests.cs" />
<Compile Include="Tests\RoutingStrategies\RoutingStrategyFirstTests.cs" />
<Compile Include="Tests\RoutingStrategies\RoutingStrategyRandomTests.cs" />
<Compile Include="Tests\RoutingStrategies\RoutingStrategyRoundRobinTests.cs" />
Expand Down

This file was deleted.

0 comments on commit 0c81f45

Please sign in to comment.