Permalink
Browse files

Remove max connections from database conection

  • Loading branch information...
1 parent ae62393 commit 3aed2bddb7a4a8462a3ee79eb2b494c41b09dfd8 @lmarburger lmarburger committed Feb 20, 2013
Showing with 2 additions and 8 deletions.
  1. +0 −2 Gemfile
  2. +2 −6 lib/bundler_api/web.rb
View
@@ -1,7 +1,5 @@
source "https://rubygems.org"
-ruby '1.9.3'
-
@hone
hone Mar 9, 2013 Member

Why did we move off of Ruby 1.9.3?

@lmarburger
lmarburger Mar 9, 2013 Member

Because I screwed up.

gem 'honeybadger'
gem 'librato-metrics'
gem 'lock-smith'
@@ -21,16 +21,12 @@ class BundlerApi::Web < Sinatra::Base
def initialize(conn = nil, write_conn = nil)
@rubygems_token = ENV['RUBYGEMS_TOKEN']
- max_conns = ENV['MAX_THREADS'] || 2
-
@conn = conn || begin
- db_url = ENV["FOLLOWER_DATABASE_URL"]
- Sequel.connect(db_url, :max_connections => max_conns)
+ Sequel.connect(ENV["FOLLOWER_DATABASE_URL"])
end
@write_conn = write_conn || begin
- write_url = ENV["DATABASE_URL"]
- Sequel.connect(write_url, :max_connections => max_conns)
+ Sequel.connect(ENV["DATABASE_URL"])
end
super()

0 comments on commit 3aed2bd

Please sign in to comment.