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

feat: use libp2p component logger #66

Closed
wants to merge 2 commits into from

Commits on Nov 25, 2023

  1. feat!: yield uint8arraylists

    The general pattern of stream muxers is to yield protocol stream data
    framed by some additional metadata - stream id, flags, etc.
    
    The frame data can be prepended/appended to the protocol stream data
    by using a `Uint8ArrayList` instead of a `Uint8Array`, this removes the
    need to copy the protocol data into a new `Uint8Array` for every frame.
    
    The new `@libp2p/interface` version allows muxers to emit
    `Uint8ArrayList`s as well as `Uint8Array`s so we can send protocol
    stream data to a transport in a no-copy operation.
    achingbrain committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    8495ae3 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2023

  1. feat: use libp2p component logger

    Refactors code to use the component logger from libp2p to allow
    more flexible logging patterns.
    
    Refs: https://github.com/libp2p/js-libp2p/issue/2105
    Refs: libp2p/js-libp2p#2198
    Refs: https://github.com/libp2p/js-libp2p/issue/378
    achingbrain committed Nov 26, 2023
    Configuration menu
    Copy the full SHA
    00e3cb6 View commit details
    Browse the repository at this point in the history