Bläddra i källkod

Fix spelling for DCAwareRoundRobinPolicy (#943)

Update AUTHORS.md
Blake Atkinson 8 år sedan
förälder
incheckning
0f5d4a7fb9
3 ändrade filer med 4 tillägg och 3 borttagningar
  1. 1 0
      AUTHORS
  2. 2 2
      policies.go
  3. 1 1
      policies_test.go

+ 1 - 0
AUTHORS

@@ -91,3 +91,4 @@ Ron Kuris <swcafe@gmail.com>
 Raphael Gavache <raphael.gavache@gmail.com>
 Yasser Abdolmaleki <yasser@yasser.ca>
 Krishnanand Thommandra <devtkrishna@gmail.com>
+Blake Atkinson <me@blakeatkinson.com>

+ 2 - 2
policies.go

@@ -544,10 +544,10 @@ type dcAwareRR struct {
 	remoteHosts map[string]*HostInfo
 }
 
-// DCAwareRoundRobbinPolicy is a host selection policies which will priorities and
+// DCAwareRoundRobinPolicy is a host selection policies which will priorities and
 // return hosts which are in the local datacentre before returning hosts in all
 // other datercentres
-func DCAwareRoundRobbinPolicy(localDC string) HostSelectionPolicy {
+func DCAwareRoundRobinPolicy(localDC string) HostSelectionPolicy {
 	return &dcAwareRR{
 		local:       localDC,
 		localHosts:  make(map[string]*HostInfo),

+ 1 - 1
policies_test.go

@@ -303,7 +303,7 @@ func TestExponentialBackoffPolicy(t *testing.T) {
 }
 
 func TestDCAwareRR(t *testing.T) {
-	p := DCAwareRoundRobbinPolicy("local")
+	p := DCAwareRoundRobinPolicy("local")
 	p.AddHost(&HostInfo{connectAddress: net.ParseIP("10.0.0.1"), dataCenter: "local"})
 	p.AddHost(&HostInfo{connectAddress: net.ParseIP("10.0.0.2"), dataCenter: "remote"})