Skip to content

Commit

Permalink
getAgent() no longer available.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Cunningham committed Mar 22, 2012
1 parent 6cb114b commit a8ff8cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/db.coffee
Expand Up @@ -17,9 +17,7 @@ class DB
args

open: (@host = 'localhost', @port = 1978) ->
# This is a bit of a hack... in order to use the 0.4 http API
agent = http.getAgent(@host, @port)
agent.maxSockets = 1
http.globalAgent.maxSockets = 1;

@rpcClient = new RpcClient(@port, @host)
@restClient = new RestClient(@port, @host)
Expand Down

0 comments on commit a8ff8cc

Please sign in to comment.