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

refactor: make components and logger optional #70

Closed
wants to merge 1 commit into from

Commits on Dec 1, 2023

  1. refactor: make components and logger optional

    In previous releases of yamux the following was supported:
    
    import { yamux } from '@chainsafe/libp2p-yamux'
    const muxer = yamux()()
    
    Now the following is required:
    
    import { yamux } from '@chainsafe/libp2p-yamux'
    const muxer = yamux()({logger: ...})
    
    Adjust the code to support passing an empty logger and an empty Components.
    
    Fixes ChainSafe#69
    
    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Dec 1, 2023
    Configuration menu
    Copy the full SHA
    039ff81 View commit details
    Browse the repository at this point in the history