pjfanning commented on issue #1933:
URL: https://github.com/apache/pekko/issues/1933#issuecomment-3038830792

   I adapted the POC a bit in https://github.com/pjfanning/pekko-issue-1933 to 
get it to show a bit more information.
   What I see so far is that ctx.messageAdapter[String] seems to only allow you 
register one adapter for the String type. The 2nd one registered is the one 
that handles the ExternalActor responses. I can see this by reordering the 2 
`externalActor ! ExternalMessage` calls. If the Self message is sent after the 
Peer one then the logging shows that it is the Self adapter that gets used.
   
   I am not an expert in message adapters but this is what I see when testing 
and I wouldn't be surprised if this is the intended behaviour - that 
ctx.messageAdapter[String] is not something that you can call multiple times - 
that you are only meant to set up one adapter for the type for that 1 context 
(ctx).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org
For additional commands, e-mail: notifications-h...@pekko.apache.org

Reply via email to