From 0f5d4a7fb9086961da11909179f9da96e92f3828 Mon Sep 17 00:00:00 2001 From: Blake Atkinson Date: Wed, 26 Jul 2017 15:11:54 -0500 Subject: [PATCH] Fix spelling for DCAwareRoundRobinPolicy (#943) Update AUTHORS.md --- AUTHORS | 1 + policies.go | 4 ++-- policies_test.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index 138a5ee64..9da858045 100644 --- a/AUTHORS +++ b/AUTHORS @@ -91,3 +91,4 @@ Ron Kuris Raphael Gavache Yasser Abdolmaleki Krishnanand Thommandra +Blake Atkinson diff --git a/policies.go b/policies.go index d4f3069e0..b53bd45fb 100644 --- a/policies.go +++ b/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), diff --git a/policies_test.go b/policies_test.go index 890db4a88..f97194cd0 100644 --- a/policies_test.go +++ b/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"})