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

core/muxing: Have functions on StreamMuxer take Pin<&mut Self> #2765

Merged
merged 12 commits into from
Aug 3, 2022

Commits on Jul 20, 2022

  1. Configuration menu
    Copy the full SHA
    01eef20 View commit details
    Browse the repository at this point in the history
  2. Have functions on StreamMuxer use Pin<&mut Self>

    This is the idiomatic way of defining `poll`-based interfaces in
    Rust despite introducing a bit of inconvenience.
    
    To work around this inconvenience, we also introduce a `StreamMuxerExt`
    trait allows for better integration with async-await style code and
    adds a `_unpin` variant to for each `poll` function of the `StreamMuxer`.
    thomaseizinger committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    1096976 View commit details
    Browse the repository at this point in the history
  3. Remove Mutex from libp2p-yamux implementation

    Now that the `StreamMuxer` interface has `Pin<&mut Self>` receivers,
    we can drop the `Mutex` from the yamux implementation.
    thomaseizinger committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    df3b797 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2022

  1. Update core/CHANGELOG.md

    Co-authored-by: Elena Frank <elena.frank@protonmail.com>
    thomaseizinger and elenaf9 committed Jul 23, 2022
    Configuration menu
    Copy the full SHA
    f16ee15 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2022

  1. Have StreamMuxerExt::close consume self

    The muxer is useless after polling `poll_close` to completion, thus
    we can consume `self` in the extension trait method which allows us
    to use the function within `libp2p_swarm::Connection`.
    thomaseizinger committed Jul 25, 2022
    Configuration menu
    Copy the full SHA
    cebef85 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c3d69d9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b82ff48 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2022

  1. Configuration menu
    Copy the full SHA
    576a5be View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    de71a9d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0af6aff View commit details
    Browse the repository at this point in the history
  4. Fix build error

    thomaseizinger committed Jul 31, 2022
    Configuration menu
    Copy the full SHA
    f07746c View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2022

  1. Configuration menu
    Copy the full SHA
    63c90ef View commit details
    Browse the repository at this point in the history