Permalink
Browse files

Fix if

  • Loading branch information...
rosylilly committed Oct 31, 2015
1 parent f32fbde commit 344c7edd10334098aa4aa4fe2f22f6af4c6d28f0
Showing with 10 additions and 10 deletions.
  1. +10 −10 5f/webapp/ruby/app.rb
View
@@ -31,38 +31,38 @@ def to_s
# class ConnectionPool
# LIST = {}
# SIZE = 12
#
#
# def self.for(hostport)
# host, port = hostport.split(?:, 2)
# LIST[hostport] ||= self.new(host, port.to_i)
# end
#
#
# def initialize(host, port)
# @host, @port = host, port
# @count = 0
# @lock = Mutex.new
# @queue = Queue.new
# end
#
#
# def take
# if @pool.pop
# end
# end
#
#
# def back(conn)
# @queue.push
# @queue.push
# end
#
#
# def create
# @lock.synchronize do
# return nil if @count >= SIZE
# @count += 1
#
#
# Net::HTTP::e
#
#
# end
# end
#
#
# def use
# conn = take()
# yield conn
@@ -83,7 +83,7 @@ def initialize(name, method, token_type, token_key, uri, mode = :http)
@name, @method, @token_type, @token_key, @uri, @mode = name, method, token_type, token_key, uri, mode
@ssl = uri.start_with?('https://')
@cachable = @method == 'GET'
@expirable = @token_type.nil?
@expirable = !@token_type.nil?
LIST[@name] = self
end

0 comments on commit 344c7ed

Please sign in to comment.