Skip to content

Commit

Permalink
Fix if
Browse files Browse the repository at this point in the history
  • Loading branch information
rosylilly committed Oct 31, 2015
1 parent f32fbde commit 344c7ed
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions 5f/webapp/ruby/app.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 344c7ed

Please sign in to comment.