lib/sqs/right_sqs_interface.rb in steamcannon-aws-2.3.26.1 vs lib/sqs/right_sqs_interface.rb in steamcannon-aws-2.3.26.2

- old
+ new

@@ -138,15 +138,13 @@ end # Sends request to Amazon and parses the response # Raises AwsError if any banana happened - def request_info(request, parser) # :nodoc: - thread = @params[:multi_thread] ? Thread.current : Thread.main - thread[:sqs_connection] ||= Rightscale::HttpConnection.new(:exception => AwsError, :logger => @logger) - request_info_impl(thread[:sqs_connection], @@bench, request, parser) + def request_info(request, parser) #:nodoc: + conn = get_conn(:sqs_connection, @params, @logger) + request_info_impl(conn, @@bench, request, parser) end - # Creates a new queue, returning its URI. # # sqs.create_queue('my_awesome_queue') #=> 'http://queue.amazonaws.com/ZZ7XXXYYYBINS/my_awesome_queue' #