Skip to content

Handle same port values for API and metrics endpoints #329

@MegaRedHand

Description

@MegaRedHand

Currently, we have a race condition when the specified ports for the API and metrics endpoints are the same. In that case, one of the two takes the port first and the other one fails to start.

What I propose is merging both start_metrics_server and start_api_server functions into a single one receiving an RpcConfig struct. Inside that function we can choose to merge both API and metrics routers into a single endpoint or not, depending on the ports chosen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions