Skip to content

Instantly share code, notes, and snippets.

@adelcambre
Created December 1, 2008 23:50
Show Gist options
  • Select an option

  • Save adelcambre/30909 to your computer and use it in GitHub Desktop.

Select an option

Save adelcambre/30909 to your computer and use it in GitHub Desktop.
# 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