Skip to content

Commit

Permalink
updated dependencies; updated documentation; updated default lock val…
Browse files Browse the repository at this point in the history
…ues;
  • Loading branch information
mcmartins committed Jan 25, 2016
1 parent ece0050 commit 2943ec5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ var database;
var driverOptions = {
path: '/path/to/store/collections',
inMemory: true,
lockWait: 60000,
lockWait: 10000,
lockPollPeriod: 50,
lockStale: 60000,
lockStale: 10000,
lockRetries: 100,
lockRetryWait: 50
};
Expand Down
10 changes: 5 additions & 5 deletions lib/ioHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ var ENCODING = 'utf-8';
function IOHandler(options) {
options = options || {};
this._lockOptions = {
wait: options.lockWait || 60000,
pollPeriod: options.lockPollPeriod || 50,
stale: options.lockStale || 60000,
retries: options.lockRetries || 10000,
retryWait: options.lockRetryWait || 50
wait: options.lockWait || 10000,
pollPeriod: options.lockPollPeriod || 100,
stale: options.lockStale || 10000,
retries: options.lockRetries || 1000,
retryWait: options.lockRetryWait || 100
};
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jsondbfs",
"description": "JSON Filesystem Database.",
"author": "Manuel Martins <[email protected]>",
"version": "0.3.5",
"version": "0.3.6",
"license": "Apache-2.0",
"engine": "node >= 0.12.0",
"main": "./index",
Expand Down Expand Up @@ -39,7 +39,7 @@
"json-criteria": "2.6.x"
},
"devDependencies": {
"codeclimate-test-reporter": "0.1.x",
"codeclimate-test-reporter": "0.3.x",
"istanbul": "0.4.x",
"mocha": "2.3.x"
}
Expand Down

0 comments on commit 2943ec5

Please sign in to comment.