Skip to content

Commit

Permalink
Rename ketama to legacyketama
Browse files Browse the repository at this point in the history
  • Loading branch information
na-- committed Nov 2, 2015
1 parent e1635dd commit 296b70d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion upstream/balancing/algorithms_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func TestConsistentHashAlgorithms(t *testing.T) {
wg.Done()
}

algorithmsToTest := []string{"ketama", "rendezvous"}
algorithmsToTest := []string{"legacyketama", "rendezvous"}
for _, id := range algorithmsToTest {
for i := 0; i < 10; i++ {
wg.Add(1)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ketama
package legacyketama

import (
"crypto/md5"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ketama
package legacyketama

import (
"net/url"
Expand Down
6 changes: 3 additions & 3 deletions upstream/balancing/weighted/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ package weighted

import (
"github.com/ironsmile/nedomi/types"
"github.com/ironsmile/nedomi/upstream/balancing/weighted/ketama"
"github.com/ironsmile/nedomi/upstream/balancing/weighted/legacyketama"
"github.com/ironsmile/nedomi/upstream/balancing/weighted/random"
"github.com/ironsmile/nedomi/upstream/balancing/weighted/rendezvous"
)

// Algorithms contains all weighted upstream balancing algorithm implementations.
var Algorithms = map[string]func() types.UpstreamBalancingAlgorithm{

"ketama": func() types.UpstreamBalancingAlgorithm {
return ketama.New()
"legacyketama": func() types.UpstreamBalancingAlgorithm {
return legacyketama.New()
},

"random": func() types.UpstreamBalancingAlgorithm {
Expand Down

0 comments on commit 296b70d

Please sign in to comment.