Skip to content

Commit

Permalink
Fix ref error
Browse files Browse the repository at this point in the history
  • Loading branch information
pioardi committed May 4, 2019
1 parent bece0d0 commit c9de4f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ring-election",
"version": "0.0.4",
"version": "0.0.5",
"description": "Leader and followers algorithm to make partitioning easy.",
"main": "index.js",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion ring/leader.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ let peerMessageHandler = (data, client) => {

arrayData.forEach(e => {
if (e.length <= 0) return;
let jsonData = JSON.parse(e);
let type = jsonData.type;
log.debug(`Receveid a message with type ${type}`);
let jsonData = JSON.parse(e);
let msg = jsonData.msg;
if (type === HEARTH_BEAT) {
hearth.set(jsonData.id, Date.now());
Expand Down

0 comments on commit c9de4f8

Please sign in to comment.