Skip to content

Commit

Permalink
#326 Add message filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoraka committed Aug 1, 2019
1 parent 3cb0d44 commit 08719fc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ public void setMaxResponseTime(int maxTime) {

@Override
public void onMessage(ReplicationMessage message) {

// filter out our messages (here for now)
if (message.getFromId().equals(nodeId)) {
return;
}

log.debug("On message ({}): {}", nodeId, message);
}

Expand Down

0 comments on commit 08719fc

Please sign in to comment.