Skip to content
This repository was archived by the owner on Dec 28, 2024. It is now read-only.

Return support for an scheme omitted IP address in RPC_HOST #199

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

ardecvz
Copy link
Contributor

@ardecvz ardecvz commented Nov 29, 2023

What is the purpose of this pull request?

Return support for an scheme omitted IP address in RPC_HOST

For example, 127.0.0.1:50051/anycable.

It's missing from 1.4.6 which introduced auto RPC implementation
inferring from the RPC host.

What changes did you make? (overview)

Default to grpc:// scheme if omitted + test all known RPC_HOST variants + include invalid RPC_HOST to logs for better debugging:
!!! RPC failed !!!, cause: unknown RPC implementation: <invalid RPC host: invalid://:+>

Is there anything you'd like reviewers to focus on?

Checklist

  • I've added tests for this change
  • I've added a Changelog entry
  • I've updated documentation

For example, `127.0.0.1:50051/anycable`.

It's missing from 1.4.6 which introduced auto RPC implementation
inferring from the RPC host.
@ardecvz ardecvz force-pushed the feature/support-rpc-host-with-port branch from c87d246 to cbaef0f Compare November 29, 2023 13:05
@palkan
Copy link
Member

palkan commented Nov 29, 2023

Thanks!

@palkan palkan merged commit 999a80c into anycable:master Nov 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants