Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #6 from scunningham/bugfix/upgrade

getAgent() no longer available.
  • Loading branch information...
commit c60e96703850f4c9bb2a506df397aba71c30d1ca 2 parents 6cb114b + a8ff8cc
@wezm authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/db.coffee
View
4 src/db.coffee
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.