From 1da49a5d574af2f886d2ef1670d925f1ce3d1ef9 Mon Sep 17 00:00:00 2001 From: Egor Rutkowski Date: Mon, 1 Jul 2024 15:15:25 +0200 Subject: [PATCH] onStartMessage fix --- src/main/java/com/example/Actor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/example/Actor.java b/src/main/java/com/example/Actor.java index 90abbed..0cac934 100644 --- a/src/main/java/com/example/Actor.java +++ b/src/main/java/com/example/Actor.java @@ -27,12 +27,12 @@ public class Actor extends AbstractBehavior { @Override public Receive createReceive(){ return newReceiveBuilder() - //.onMessage(StartMessage.class, this::onStartMessage) + .onMessage(StartMessage.class, this::onStartMessage) .build(); } - private Behavior onStartMessage(Expression expression){ - this.expression = expression; + private Behavior onStartMessage(StartMessage message){ + this.expression = message.expression; return this; }