Skip to content

Commit

Permalink
Channel#frame_size currently returns Session#frame_max, so remove thi…
Browse files Browse the repository at this point in the history
…s condition
  • Loading branch information
Michael Klishin committed Nov 30, 2012
1 parent 4186ba3 commit fb02d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bunny/channel.rb
Expand Up @@ -165,7 +165,7 @@ def basic_publish(payload, exchange, routing_key, opts = {})

meta = { :priority => 0, :delivery_mode => 2, :content_type => "application/octet-stream" }.
merge(opts)
@connection.send_frameset(AMQ::Protocol::Basic::Publish.encode(@id, payload, meta, exchange_name, routing_key, meta[:mandatory], false, (frame_size || @connection.frame_max)), self)
@connection.send_frameset(AMQ::Protocol::Basic::Publish.encode(@id, payload, meta, exchange_name, routing_key, meta[:mandatory], false, @connection.frame_max), self)

self
end
Expand Down

0 comments on commit fb02d4b

Please sign in to comment.