Skip to content

Double check consensus bus to make sure we don't have channels not being read from. #457

@sstanfield

Description

@sstanfield

If we have any MPSC channels that are not read (for instance because a task is not started in the current mode) then they could "fill up" and block calling code.

See consensus/primary/src/primary.rs around line 103 for a task that is started just to deal with this.

We want something more robust then this, we use a wrapper around MPSC channels already so maybe we can adapt it to turn send() into a no-op when there is no receiver for instance. The goal would be to keep sending code "clean" and not have to start otherwise useless tasks.

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