Created
December 1, 2008 23:50
-
-
Save adelcambre/30909 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Wtf? If you aren't multithreaded, Thread.current == Thread.mainm | |
| # why on earth would you ever want to turn this off? oh, and it defaults off | |
| def request_info(request, parser) #:nodoc: | |
| thread = @params[:multi_thread] ? Thread.current : Thread.main | |
| thread[:ec2_connection] ||= Rightscale::HttpConnection.new(:exception => AwsError, :logger => @logger) | |
| request_info_impl(thread[:ec2_connection], @@bench, request, parser) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment