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

fix: allow services to indicate their dependencies #1762

Closed
wants to merge 2 commits into from

Commits on May 17, 2023

  1. fix: allow services to indicate their depdencies

    Some services depend on others, for example circuit relay v2 and
    kad-dht don't really work without identify so we need a way to
    prompt the user to configure these dependencies.
    
    The change is to allow extending the components a service requires
    with a service map of the dependencies.
    
    The components type in the `Libp2pInit` type is extended by the
    `ServiceMap` generic type so when the user configures a node without
    the required dependencies, TypeScript will fail to compile as the
    components being passed to the factory function don't have type
    overlap with the required components.
    achingbrain committed May 17, 2023
    Configuration menu
    Copy the full SHA
    55c1283 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2023

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