Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek committed Mar 6, 2018
1 parent 0bf5e6f commit 035ad16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var cqlSession = getCQLSession()

func getCQLSession() *gocql.Session {
fmt.Println("getCQLSession called")
clusterconfig := gocql.NewCluster(getValForEnvVar("DHCS_NODE_LIST", "129.150.127.4"))
clusterconfig := gocql.NewCluster(getValForEnvVar("DHCS_NODE_LIST", "localhost"))
portStr := getValForEnvVar("DHCS_CLIENT_PORT", "9042")
port, _ := strconv.Atoi(portStr)
clusterconfig.Port = port
Expand All @@ -48,8 +48,8 @@ func getCQLSession() *gocql.Session {
clusterconfig.Timeout = 10 * time.Second
clusterconfig.Keyspace = getValForEnvVar("KEYSPACE", "tweetspace")
clusterconfig.Authenticator = gocql.PasswordAuthenticator{
Username: getValForEnvVar("DHCS_USER_NAME", "admin"),
Password: getValForEnvVar("DHCS_USER_PASSWORD", "Password@123"),
Username: getValForEnvVar("DHCS_USER_NAME", "kehsihba"),
Password: getValForEnvVar("DHCS_USER_PASSWORD", "s3cr3t"),
}
clusterconfig.DisableInitialHostLookup = true
_session, err := clusterconfig.CreateSession()
Expand Down

0 comments on commit 035ad16

Please sign in to comment.