Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change default_port local var to cass_port per CR

  • Loading branch information...
commit eb509dc14c1c5da740d5840123bc7bd1fc86292d 1 parent e6a56b7
@noahgibbs noahgibbs authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 config_v2.ru
  2. +2 −2 lib/hastur-server/api/v2.rb
View
4 config_v2.ru
@@ -10,8 +10,8 @@ cassandra_servers = []
if ENV['CASSANDRA_URIS']
cassandra_servers = MultiJson.load(ENV['CASSANDRA_URIS']).flatten
else
- default_port = ENV["HASTUR_CASS_PORT"] || "9160"
- cassandra_servers = [ "127.0.0.1:#{default_port}" ]
+ cass_port = ENV["HASTUR_CASS_PORT"] || "9160"
+ cassandra_servers = [ "127.0.0.1:#{cass_port}" ]
end
use Hastur::Rack, "hastur.retrieval"
View
4 lib/hastur-server/api/v2.rb
@@ -45,8 +45,8 @@ def initialize(*args)
cass_servers = args.unshift
@cassandra_uris = cass_servers.flatten
else
- default_port = ENV["HASTUR_CASS_PORT"] || "9160"
- @cassandra_uris = [ "127.0.0.1:#{default_port}" ]
+ cass_port = ENV["HASTUR_CASS_PORT"] || "9160"
+ @cassandra_uris = [ "127.0.0.1:#{cass_port}" ]
end
super(*args)
Please sign in to comment.
Something went wrong with that request. Please try again.