Skip to content

Commit

Permalink
fix: remove agentkeepalive
Browse files Browse the repository at this point in the history
Fixes: #140
  • Loading branch information
targos committed Nov 25, 2018
1 parent fe30e4d commit 96bd7ab
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 27 deletions.
18 changes: 0 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
},
"homepage": "https://github.com/cheminfo/rest-on-couch#readme",
"dependencies": {
"agentkeepalive": "^4.0.0",
"commander": "^2.19.0",
"debug": "^4.1.0",
"delay": "^4.1.0",
Expand Down
9 changes: 1 addition & 8 deletions src/util/nanoShim.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const crypto = require('crypto');

const agentkeepalive = require('agentkeepalive');
const got = require('got');

const { DESIGN_DOC_NAME } = require('../constants');
Expand All @@ -13,20 +12,14 @@ const CouchError = require('./CouchError');

const hasOwnProperty = Object.prototype.hasOwnProperty;

const agent = new agentkeepalive({
maxFreeSockets: 50,
timeout: 1000 * 60 * 5
});

class NanoShim {
constructor(url, cookie) {
this.client = got.extend({
baseUrl: url,
json: true,
headers: {
cookie
},
agent
}
});
}

Expand Down

0 comments on commit 96bd7ab

Please sign in to comment.