Skip to content

Unsubscribe from topics without leaving them #1289

Open
@rodrigo-o

Description

@rodrigo-o

This was a TODO comment on attestations that impacts also sync_committees, right now to unsubscribe from a topi we need to leave an rejoin:

  @spec stop_collecting(non_neg_integer()) ::
          {:ok, list(Types.Attestation.t())} | {:error, String.t()}
  def stop_collecting(subnet_id) do
    topic = topic(subnet_id)
    Libp2pPort.leave_topic(topic)
    Libp2pPort.join_topic(topic)
    SyncSubnetInfo.stop_collecting(subnet_id)
  end

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2This is a nice to have. Improves usability of the app or the libraries, but it's not urgent.attestersync committees

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions