Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tweak getters & initialise.

  • Loading branch information...
commit 9683ba45b485d4e9d67c20407474d1b8e31338a6 1 parent 087bc89
@quimarche authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 trudy.rb
View
11 trudy.rb
@@ -21,11 +21,12 @@ class Trudy < Sinatra::Base
QUEUE_NAME = ENV['TRUDY_QUEUE']
def initialize
- @bunny = Bunny.new(ENV['RABBITMQ_BIGWIG_URL'])
- @bunny.start
- @channel = @bunny.create_channel
- @exchange = @channel.default_exchange
- @queue = @channel.queue(QUEUE_NAME)
+ super
+ bunny = Bunny.new(ENV['RABBITMQ_BIGWIG_URL'])
+ bunny.start
+ channel = bunny.create_channel
+ @exchange = channel.default_exchange
+ @queue = channel.queue(QUEUE_NAME)
end
def send_byte_array byte_array
Please sign in to comment.
Something went wrong with that request. Please try again.