Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple cardano-client subscriber & mux changes #4979

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

coot
Copy link
Contributor

@coot coot commented Oct 2, 2024

Description

Fixes:

Requires:

  • Removed Network.Mux.Compat module #4974

  • node-to-client: expose connectToWithMux

  • ouroboros-network-framework: added ConnectToArgs record

  • cardano-client: subscription without subscribtion worker

  • network-mux: generalised Channel type

  • Updated CHANGELOG.md files

  • network-mux: added name field to MuxBearer

Checklist

Quality

  • Commit sequence makes sense and have useful messages, see ref.
  • New tests are added and existing tests are updated.
  • Self-reviewed the PR.

Maintenance

  • Linked an issue or added the PR to the current sprint of ouroboros-network project.
  • Added labels.
  • Updated changelog files.
  • The documentation has been properly updated, see ref.

@coot coot marked this pull request as ready for review October 2, 2024 13:09
@coot coot requested a review from a team as a code owner October 2, 2024 13:09
@coot coot self-assigned this Oct 2, 2024
@coot coot added the mux issues related to network-mux label Oct 2, 2024
@coot coot mentioned this pull request Oct 3, 2024
9 tasks
@coot coot force-pushed the coot/simple-subscriber branch 2 times, most recently from 26490be to aaf5624 Compare October 3, 2024 19:37
Expose `connectTo` version which accepts a callback that has access to
`Mux`.  This allows to implement ones own logic for:
* starting approriate mini-protocols (one doesn't need to start all of
  them).
* implement ones own restarting policy for `mini-protocols`, without
  terminating a connection.
* added `ConnectToArgs`
* `connectToNode` and friends return the result of the first terminated
  mini-protocol (or its error)
Provide a `Channel` which can send arbitrary data.  This is useful if
one wants to test application with or without the multiplexer.  For us
this simplifies `Ouroboros.Network.Channel` module in the
`ouroboros-network-framework` package.
It is used to name various shared stm variables.
NOTE: we name them when we `runMux`, not when `newMux` is created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mux issues related to network-mux
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Clean-up Network.Mux.Channel Add bearer name Expose new mux api for node-to-client applications
2 participants