Permalink
Browse files

Update Unicorn example.

  • Loading branch information...
1 parent 8b2b4ca commit 78b073be79402b8c4bca7089b465d44d3685752b @djanowski djanowski committed Mar 12, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 examples/unicorn/config.ru
  2. +1 −1 examples/unicorn/unicorn.rb
@@ -1,3 +1,3 @@
run lambda { |env|
- [200, {"Content-Type" => "text/plain"}, [$redis.randomkey]]
+ [200, {"Content-Type" => "text/plain"}, [Redis.current.randomkey]]
}
@@ -16,5 +16,5 @@
# worker processes.
after_fork do |server, worker|
- $redis = Redis.connect
+ Redis.current.quit
end

0 comments on commit 78b073b

Please sign in to comment.