Commit c26b6c06 authored by Andy Lindeman's avatar Andy Lindeman
Browse files

Fix other places in the code that initialize Redis objects

parent 29dd56e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ class FnordMetric::App < Sinatra::Base

  def initialize(namespaces, opts)
    @namespaces = {}
    @redis = Redis.new
    @redis = Redis.connect(:url => opts[:redis_url])
    @opts = opts
    namespaces.each do |key, block|
      @namespaces[key] = FnordMetric::Namespace.new(key, opts.clone)
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ class FnordMetric::InboundStream < EventMachine::Connection
  end

  def post_init
    @redis = Redis.new
    @redis = Redis.connect(:url => opts[:redis_url])
    @events_buffered = 0
    @streaming = true
    @buffer = ""