Skip to content

Commit 518bd85

Browse files
author
Dave Sims
committed
Moved connection cache to its own class
1 parent 77b4209 commit 518bd85

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

lib/github/ldap.rb

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -323,20 +323,6 @@ def configure_user_search_strategy(strategy)
323323
end
324324
end
325325

326-
def get_connection_by_host(host, port=389, auth=nil)
327-
auth ||= {:method => :simple, :username => @admin_user, :password => @admin_password}
328-
329-
@connections ||= Hash.new do |cache, host|
330-
conn = GitHub::Ldap.new({
331-
host: host,
332-
port: port,
333-
auth: auth
334-
})
335-
cache[host] = conn
336-
end
337-
@connections[host]
338-
end
339-
340326
# Internal: Configure the member search strategy.
341327
#
342328
#

0 commit comments

Comments
 (0)