Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #47 from bookchin/master
Browse files Browse the repository at this point in the history
v3.1.2
  • Loading branch information
bookchin committed Feb 27, 2017
2 parents 8d53cd0 + 4f7149f commit dbcb83e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions lib/b-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ class Btable extends EventEmitter {
path.join(this._tablePath, Btable.RID_FILENAME),
{ encoding: 'hex' }
), 'hex');

for (let i = 0; i < constants.B; i++) {
this._getSbucketAtIndex(i);
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kfs",
"version": "3.1.1",
"version": "3.1.2",
"description": "a kademlia inspired local file store based on leveldb ",
"main": "index.js",
"bin": {
Expand Down
4 changes: 2 additions & 2 deletions test/b-table.integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ describe('Btable/Integration', function() {
);
db.flush(() => {
_getSbucketForKey.restore();
expect(_getSbucketForKey.callCount).to.equal(256);
expect(flush.callCount).to.equal(256);
expect(_getSbucketForKey.callCount).to.equal(2);
expect(flush.callCount).to.equal(2);
done();
});
});
Expand Down

0 comments on commit dbcb83e

Please sign in to comment.