Skip to content

Outgoing state sent_messages should use dest sp and message key together as key #79

@yue-fred-gao

Description

@yue-fred-gao

sent_messages in Outgoing state is only for troubleshooting purposes. It records messages that are sent successfully from the actor. Currently it is implemented as a HashMap and uses ActorMessage::key as the map's key. This requires the key has to be unique. It makes sense to add dest service path to the key to avoid collision when sending the same message to multiple actors. It also avoids unbound sent_messages because only the last copy of the message if it sends the same message multiple times to the same actor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions