Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix_host_env'
Browse files Browse the repository at this point in the history
  • Loading branch information
ken committed Jun 9, 2021
2 parents cb49579 + ea2f78a commit 1f5a8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func run(c *cli.Context) {

log.Info("Cofing 設定成功")

cluster := gocql.NewCluster(env.CassandraHost)
cluster := gocql.NewCluster(strings.Split(env.CassandraHost, ",")...)
cluster.Port = env.CassandraPort
cluster.Keyspace = SystemSchemaKey
cluster.Timeout = 30 * time.Second
Expand Down

0 comments on commit 1f5a8b0

Please sign in to comment.