Skip to content

Commit

Permalink
Fix spelling for DCAwareRoundRobinPolicy (apache#943)
Browse files Browse the repository at this point in the history
Update AUTHORS.md
  • Loading branch information
robusto authored and Zariel committed Jul 26, 2017
1 parent 2f9cd61 commit 0f5d4a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -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>
4 changes: 2 additions & 2 deletions policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion policies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"})

Expand Down

0 comments on commit 0f5d4a7

Please sign in to comment.