Skip to content

Commit

Permalink
use 1.8 compatible syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanne committed Jan 23, 2014
1 parent dd70b9a commit 4c1360a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/amqp/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def initialize(*args, &block)
# make it easier to use *args. MK.
@settings = Settings.configure(args.first)

@on_tcp_connection_failure = ->(settings) {
@on_tcp_connection_failure = Proc.new { |settings|
closed!
if cb = @settings[:on_tcp_connection_failure]
cb.call(settings)
Expand Down

0 comments on commit 4c1360a

Please sign in to comment.