Closed Tochemey closed 7 years ago
Thank you for reporting it.
I suspect it can be related to some changes in the Protoactor itself. I will be able to look into it after August 10, when I return from vacations. However, feel free to investigate what is the real cause of the problem and let me know if you find something.
Thanks to the protoactor guys I am able to fix the issue:
func (catcher *Catcher) outboundMiddleware(next actor.SenderFunc) actor.SenderFunc {
return func(ctx actor.Context, target *actor.PID, env *actor.MessageEnvelope) {
catcher.processOutboundMessage(ctx, target, env)
next(ctx, target, env)
}
/* return func(ctx actor.Context, target *actor.PID, env actor.MessageEnvelope) {
catcher.processOutboundMessage(ctx, target, &env)
next(ctx, target, &env)
}*/
}
func (catcher *Catcher) processOutboundMessage(ctx actor.Context, target *actor.PID, env *actor.MessageEnvelope) {
// TODO: Is there a difference between using ctx.Message() and env.Message?
message := env.Message
if !isSystemMessage(message) {
catcher.ChUserOutbound <- &Envelope{
Sender: ctx.Self(),
Target: target,
Message: message,
}
}
}
So far I worked as expected. However I am facing some timeout issue while sending and receiving messages. When I run it I could see that the message has been handled as expected and response has been sent but there is a timeout issue.
Hello, When I tried to install it using the following command:
I got the following message:
I maybe doing something wrong.