Skip to content

Commit

Permalink
fix edge-case after leader election
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Jan 9, 2016
1 parent 9b0e6d7 commit 921b329
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ module.exports = function (dir, opts) {
client.db = db.db;
client.close = shutdown;
client.emit('leader');
down.forward(db.db);

server.listen(sockPath, onlistening);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {
"has": "^1.0.0",
"level": "^1.4.0",
"multileveldown": "^2.0.1",
"multileveldown": "^2.1.0",
"pump": "^1.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit 921b329

Please sign in to comment.