Commit b75665f0 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

Merge pull request #100 from tobiashm/patch-1

Simplified Redis connection creation
parents 43b0a298 107ee352
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -47,10 +47,7 @@ module FnordMetric
  end

  def self.mk_redis
    host, port = options[:redis_url].gsub("redis://", "").split(":")
    redis_opts = { :host => host }
    redis_opts.merge!(:port => port) if port
    Redis.new(redis_opts)
    Redis.new(:url => options[:redis_url])
  end

  def self.default_options(opts = {})