Fix simplified redis code

parent 79e173a1
Pipeline #153 passed with stage
in 50 seconds
......@@ -12,9 +12,11 @@ class PubRelay
include HTTP::Handler
# Make sidekiq use REDIS_URL
ENV["REDIS_URL"] ||= "redis://localhost:6379"
ENV["REDIS_PROVIDER"] = "REDIS_URL"
Sidekiq::Client.default_context = Sidekiq::Client::Context.new
class_getter redis = Redis::PooledClient.new(url: ENV["REDIS_URL"]?)
class_getter redis = Redis::PooledClient.new(url: ENV["REDIS_URL"])
class_property(private_key) do
private_key_path = ENV["RELAY_PKEY_PATH"]? || File.join(Dir.current, "actor.pem")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment