Skip to content

Commit

Permalink
rename the defaultHostname variable
Browse files Browse the repository at this point in the history
  • Loading branch information
reugn committed Jan 6, 2021
1 parent a8fc7a7 commit e234700
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions physical/aerospike/aerospike.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const (

defaultNamespace = "test"

defaultHost = "127.0.0.1"
defaultPort = 3000
defaultHostname = "127.0.0.1"
defaultPort = 3000

keyNotFoundError = "Key not found"
)
Expand Down Expand Up @@ -68,7 +68,7 @@ func buildAerospikeClient(conf map[string]string, policy *aero.ClientPolicy) (*a
if !ok || hostListString == "" {
hostname, ok := conf["hostname"]
if !ok || hostname == "" {
hostname = defaultHost
hostname = defaultHostname
}

portString, ok := conf["port"]
Expand Down

0 comments on commit e234700

Please sign in to comment.