Skip to content

Commit

Permalink
assert on unexpected message
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Feb 25, 2025
1 parent aa5e069 commit ed6ca37
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,14 @@ public void accept(ObservedMessage t) {
aggregate.advanceBy(key, by.longValue());
}
}
case "LOG {}:{}" -> {
if (t.getArguments().size() >= 2 && t.getArguments().get(1) instanceof String msg) {
var key = t.getArguments().get(0);
// TBD: now what?
}
}
default -> {
System.err.println(" seeing " + t.getMessage() + " for " + nodeId);
assert false : "Unexpected progress message: " + t.getMessage();
}
}
}
Expand Down

0 comments on commit ed6ca37

Please sign in to comment.